1👍
✅
Your table shoe_size_run
has a composite primary key (sku,
. Unfortunately, Django does not support this yet (see ticket 373)
size_run_id)
If you want to use the table in Django, you’ll have to add a single column primary key to that table. The easiest column name is id
, since that’s what Django expects by default.
Looking at your diagram, you’ll need to do the same thing for your shoe_image
table as well.
0👍
The table is shoe_size_run
and the column is size_run_id
. So your model field needs to be size_run_id
rather than size_run
.
- Django Form request not saving data to db
- How to remove Django`s BinaryField from memory?
- Django : NameError at /approved/filter/7/ – name 'testElement' is not defined
- Django, GET parameters keeped into the URL after a POST call
- Django UNIQUE constraint failed with OneToOneField while migrate in Django User Model
Source:stackexchange.com