Consider we have a model like this
class A(Models.model): .... class B(A): .... x = models.ForeignKey(B, related_name="rn1") .... class C(A): .... x = models.ForeignKey(B, related_name="rn2") .... Observe that both fields above define the same thing with just a difference in the related_name. I feel that this part can also be shifted to class A somehow and just change the related_name in children.
Can this be done or should I use copies of the same code with different related_name?
ManyToManyFieldthen your thought might work, but since it is aForeignKey, it is a 1:n relation, and the reverse would not work the same way.