Removed 2 DB queries per request when user is authenticated

This commit is contained in:
Eliot Berriot 2019-01-04 13:52:36 +01:00
parent 49e1bec7b9
commit 67de32ccc2
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
2 changed files with 18 additions and 1 deletions

View file

@ -327,7 +327,7 @@ SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")
# AUTHENTICATION CONFIGURATION
# ------------------------------------------------------------------------------
AUTHENTICATION_BACKENDS = (
"django.contrib.auth.backends.ModelBackend",
"funkwhale_api.users.auth_backends.ModelBackend",
"allauth.account.auth_backends.AuthenticationBackend",
)
SESSION_COOKIE_HTTPONLY = False