From 4fcf257ad37fad25db594c366dfbcf93ab3bf317 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Tue, 13 Sep 2022 19:49:46 +0200 Subject: remove unused/useless code --- accounts/views.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'accounts') diff --git a/accounts/views.py b/accounts/views.py index 22e287e..959fa28 100644 --- a/accounts/views.py +++ b/accounts/views.py @@ -44,7 +44,7 @@ MIDATA_ENABLED = settings.OAUTH_ENABLED # override to remove help text class RegisterForm(UserCreationForm): def __init__(self, *args, **kwargs): - super(RegisterForm, self).__init__(*args, **kwargs) + super(UserCreationForm, self).__init__(*args, **kwargs) for fieldname in ['username', 'password1', 'password2']: self.fields[fieldname].help_text = None @@ -119,7 +119,6 @@ class CustomLoginView(LoginView): # check if user has a cookie saved response = HttpResponseRedirect("/") - sessions = dict() # no cookie if "user_switcher" not in request.COOKIES: return super(CustomLoginView, self).get(request, *args, **kwargs) -- cgit v1.2.1