-
Notifications
You must be signed in to change notification settings - Fork 657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch User does not work if User's Primary Key is an UUID #1036
Comments
More info:
However, changing users will still break because
The problem is likely in the following row as setting
Because Django does not support signing UUIDs (unless you cast to str first) in session: |
@elnygren Why did you close this? |
@sehmaschine because session serializer can be used to fix this issue: just make it (de)serialize ULID/UUID properly with a proper JSONEncoder |
Custom User model with
is_staff
andis_superuser
both implemented. Primary Key is an UUIDField. Grappelli 3.0.8 and latest Django.The text was updated successfully, but these errors were encountered: