From 397650fc5fc49260ecfe8f66c2a09240d3c525f1 Mon Sep 17 00:00:00 2001 From: "Pavel \"LEdoian\" Turinsky" Date: Tue, 25 May 2021 19:23:11 +0200 Subject: [PATCH] =?UTF-8?q?Anglick=C3=A9=20login=20urls?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seminar/urls.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/seminar/urls.py b/seminar/urls.py index 2818f1c9..77b46b66 100644 --- a/seminar/urls.py +++ b/seminar/urls.py @@ -134,7 +134,9 @@ urlpatterns = [ path('prihlaska/',views.prihlaskaView, name='seminar_prihlaska'), path('prihlasit/', views.LoginView.as_view(), name='login'), + path('login/', RedirectView.as_view(pattern_name='login', permanent=True, query_string=True)), path('odhlasit/', views.LogoutView.as_view(), name='logout'), + path('logout/', RedirectView.as_view(pattern_name='login', permanent=True, query_string=True)), path('resitel/', resitel_required(views.ResitelView.as_view()), name='seminar_resitel'), path('resitel/odevzdana_reseni/', resitel_required(views.PrehledOdevzdanychReseni.as_view()), name='seminar_resitel_odevzdana_reseni'), path('reset-hesla/', views.PasswordResetView.as_view(), name='reset_password'),