2đź‘Ť
âś…
Yes, it is because you didn’t specify a primary key in subproblem model and Django is expecting one. To resolve the problem, remove “managed” from the Meta and execute “django-admin syncdb”, and everything should work now.
👤Juanmi Taboada
0đź‘Ť
I think it’s because your model doesn’t have primary key – Django assumes you have a pk column named id (auto generated) You could look into this app: https://github.com/simone/django-compositekey – it will allow you to define a composite pk.
👤Marek M.
Source:stackexchange.com