-
I'm testing it out on a project with string primary keys and I see that the async requests made by django-admin-sortable2 include the primary key casted to an int in the body. This breaks sorting because the correct primary key is not being sent and therefore the server replies with a 400 Bad Request error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Please read section on how to report bug: |
Beta Was this translation helpful? Give feedback.
-
I read somewhere (don't remember where) that string primary keys are a bad idea anyway, so I never tested. Unless you can give me a good reason, why |
Beta Was this translation helpful? Give feedback.
I read somewhere (don't remember where) that string primary keys are a bad idea anyway, so I never tested. Unless you can give me a good reason, why
unique=True
on that field (plus an inter-based PK) doesn't work for you, I'll probably not going to change the code for adminsortable2.