From 1f39cc5b40109bf15b16908ef574a76159c9f180 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Sat, 22 Jan 2022 17:16:43 +0100 Subject: [PATCH] user.is_authenticated is no longer a method Apparently this is now a property, so we don't need to call it. We can just use it. --- contest/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contest/views.py b/contest/views.py index f16751f..80e41b9 100644 --- a/contest/views.py +++ b/contest/views.py @@ -17,7 +17,7 @@ from .forms import UpdateRefForm, QSOForm, QSOFormWithTime, CustomUserCreationFo def index(request): - if request.user.is_authenticated(): + if request.user.is_authenticated: return HttpResponseRedirect(reverse("contest:index")) return render(request, "index.html", {"loginForm": AuthenticationForm()})