mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-05-08 18:44:54 +00:00
Add option/fix for user models with UUIDs (#28)
* Add option/fix for user models with UUIDs * Remove unnecessary configuration
This commit is contained in:
parent
5668d22553
commit
89ef6c9a7f
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class UserAgreementMiddleware(deprecation.MiddlewareMixin if DJANGO_VERSION >= (
|
|||
# for the user object.
|
||||
# NOTE: We use the user ID because it's not user-settable and it won't
|
||||
# ever change (usernames and email addresses can change)
|
||||
user_id = int(request.session['_auth_user_id'])
|
||||
user_id = request.session['_auth_user_id']
|
||||
user_auth_backend = request.session['_auth_user_backend']
|
||||
|
||||
# Get the cache prefix
|
||||
|
|
|
|||
Loading…
Reference in a new issue