This doc 
<https://docs.djangoproject.com/en/1.11/topics/db/models/#multiple-inheritance> 
says multiple inheritance with a common ancestor can do the job.
However, I've experienced an error while making migrations.
Here's the error message.

> models.E005: The field '*<common-ancestor>*_ptr' from parent model '
> *<myapp>.<parent-1>*' clashes with the field '*<common-ancestor>_*ptr' 
> from parent model '*<myapp>.<parent-2>*'.


After some googling, I fount this stackoverflow Q&A 
<https://stackoverflow.com/questions/31118645/django-multiple-inheritance-e005>
.
This solves the problem by create an explicit different parent_link in 
parent model to prevent collision.
But it seems redundant to hold two multiple ancestor link in the child 
model.
Is there any solution with no redundant field?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bd758923-735b-4ccf-ab3a-ba48cbcbe165%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to