Can you have multiple levels if inheritance in your models?

Not "multiple inheritance" multiple level inheritance. 

Something like


class ArchBase(models.Model):
obj = models.CharField(max_length=128, blank=False, null=False)

class Meta:
abstract = True

class Armour(ArchBase):
name_pl = models.CharField(max_length=128, blank=False, null=False)

class Meta:
abstract = True

class Boots(Armour):
body_foot = models.IntegerField(blank=False, null=False, default=-1)

The error I get when I try to create some Boots

Exception Type: OperationalError
Exception Value: 

no such table: items_boots



And I do not see the items_boots table in my SQL Lite database.

-- 
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/c0f363f8-c8de-419f-b114-0e8b729148d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to