Skip to content

Is django-admin-sortable2 compatible with non-integer primary keys? #314

Answered by jrief
knifecake asked this question in Q&A
Discussion options

You must be logged in to vote

I was just wondering if the project supports string primary keys.

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@knifecake
Comment options

Comment options

You must be logged in to vote
1 reply
@knifecake
Comment options

Answer selected by knifecake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants