Django: Getting "ManyToManyField cannot define a relation with abstract class" error -


i need inheritance:

item(models.model) ... class meta: abstract = true

food(item) ...

meal(item) items= models.manytomanyfield(item,related_name='meal_items')

but getting error: assertionerror: manytomanyfield cannot define relation abstract class item

what should do? other option?

multi-table inheritance? manytomany fields have link actual database tables.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -