[Fixed]-Django BigAuto User (how to get a 64 bit PK for the User table)

1👍

Create a subclass of AbstractBaseUser

class User(AbstractBaseUser):
    id = models.BigAutoField()

and in your settings.py

AUTH_USER_MODEL = 'myapp.User'
👤e4c5

Leave a comment