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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -