I've a specific set of models:

class Parent(models.Model):
    pass


class ChildA(Parent):
    pass


class ChildB(Parent):
    pass


Here Parent has fields:
(<OneToOneRel: inheritance_clash.childa>,
 <OneToOneRel: inheritance_clash.childb>,
 <django.db.models.fields.AutoField: id>)

and ChildB has fields:
(<django.db.models.fields.AutoField: id>,
 <django.db.models.fields.related.OneToOneField: parent_ptr>)

so fields childa and childb are not inherited in ChildB, which is normal 
and expected. But adding a field '*childa*' in ChildB leads to E006 clash 
with a field in parent. But IMHO there should not be any clash reported as 
ChildBInstance.childa is not a valid field without the presence of local 
childa field. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/e6376613-5dbf-4ba7-bc9a-81611f27d074%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to