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.
This commit is contained in:
Sebastian Lohff 2022-01-22 17:16:43 +01:00
rodič 933a337eac
revize 1f39cc5b40
1 změnil soubory, kde provedl 1 přidání a 1 odebrání

Zobrazit soubor

@ -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()})