djangorestframework-simplejwt icon indicating copy to clipboard operation
djangorestframework-simplejwt copied to clipboard

AutoField in id Field

Open keder-code-hash opened this issue 2 years ago • 3 comments

AutoField doesn't work with djongo , a ORM based mapper for MngoDB. It actually riase an DBEXCEPTION error for that. Any solution for that? In blacklist token migration name: "token_blacklist.0008_migrate_to_bigautofield"

keder-code-hash avatar Jun 04 '22 18:06 keder-code-hash

Uhh we could add a field specifying the blacklist models? If you wanna make the PR for that go ahead

Andrew-Chen-Wang avatar Jun 04 '22 18:06 Andrew-Chen-Wang

See in Django we can use BigIntegerField and set it the primary_key =True. It will work for all.

keder-code-hash avatar Jun 04 '22 19:06 keder-code-hash

that's not autoincrementing though for relational databases

Andrew-Chen-Wang avatar Jun 04 '22 20:06 Andrew-Chen-Wang