summaryrefslogtreecommitdiff
path: root/tests/auth_tests/urls.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2016-08-14 22:42:49 +0200
committerTim Graham <timograham@gmail.com>2019-02-14 10:23:02 -0500
commita8e2a9bac6e548d6ab2e13af6171d2fdd3b8055b (patch)
treef49b5f5f14b5a8d8f907efee6079a4e3b51ce72c /tests/auth_tests/urls.py
parent76990cbbda5d93fda560c8a5ab019860f7efaab7 (diff)
Refs #15902 -- Deprecated storing user's language in the session.
Diffstat (limited to 'tests/auth_tests/urls.py')
-rw-r--r--tests/auth_tests/urls.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auth_tests/urls.py b/tests/auth_tests/urls.py
index d0b259935b..142a2b49c2 100644
--- a/tests/auth_tests/urls.py
+++ b/tests/auth_tests/urls.py
@@ -9,6 +9,7 @@ from django.shortcuts import render
from django.template import RequestContext, Template
from django.urls import path, re_path, reverse_lazy
from django.views.decorators.cache import never_cache
+from django.views.i18n import set_language
class CustomRequestAuthenticationForm(AuthenticationForm):
@@ -148,6 +149,7 @@ urlpatterns = auth_urlpatterns + [
path('permission_required_exception/', permission_required_exception),
path('login_and_permission_required_exception/', login_and_permission_required_exception),
+ path('setlang/', set_language, name='set_language'),
# This line is only required to render the password reset with is_admin=True
path('admin/', admin.site.urls),
]