I tyied with some new filed in model B.

class A(models.Model):
    data = models.CharField(max_length=30)

class B(A):
    data2 = models.CharField(max_length=30)

to

class A(models.Model):
    data = models.CharField(max_length=30)


class B(models.Model):
    data2 = models.CharField(max_length=30)

migrated and got 

  File "/.../lib/python3.4/site-packages/django/db/models/base.py", line 226
, in __new__
    base.__name__,
django.core.exceptions.FieldError: Local field 'id' in class 'B' clashes 
with field of the same name from base class 'A'.


-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/688e96e4-d8eb-497a-a9d4-4afe8d234071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to