From c07f2f11a9a8274db204de6c6086b0d94a103548 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 27 Jul 2019 17:35:49 +0200 Subject: [PATCH] Use the main login page instead of the admin one --- chat/views.py | 4 ++-- pwdb/views.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chat/views.py b/chat/views.py index 1d608b0..ee3fd2e 100644 --- a/chat/views.py +++ b/chat/views.py @@ -42,12 +42,12 @@ def _switch_hidden(request, obj, pk): return redirect(next_page) -@staff_member_required +@staff_member_required(login_url="login") def switch_log_source(request, pk): return _switch_hidden(request, LogSource, pk) -@staff_member_required +@staff_member_required(login_url="login") def switch_log_entry(request, pk): return _switch_hidden(request, LogEntry, pk) diff --git a/pwdb/views.py b/pwdb/views.py index 3a31183..01e37da 100644 --- a/pwdb/views.py +++ b/pwdb/views.py @@ -5,7 +5,7 @@ from .models import SharedPasswordAccess from .forms import AuthForm -@staff_member_required +@staff_member_required(login_url="login") def list_passwords(request): try: pwd = request.POST["pwdb_check"]