class B(models.Model):
    a = model.ForeignKey(A, related_name='A')
b = models.CharField(max_length=5)


class D(models.Model):
    a = model.ForeignKey(A, related_name='A')
parent = model.ForeignKey(B, related_name='D')
Наследование модели Django и внешние ключи