trivial: Remove dead code

We only support Django >= 1.11 now. Who cares about Django < 1.7.

Change-Id: I3576b921b976ef9e5bb1561bda85348112e4b6e8
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane 2019-08-26 17:03:43 +01:00 committed by Akihiro Motoki
parent a96c6e34cf
commit b9e374d095
1 changed files with 0 additions and 2 deletions

View File

@ -158,6 +158,4 @@ class Login(django_auth_forms.AuthenticationForm):
{'username': username, 'domain': domain,
'remote_ip': utils.get_client_ip(self.request)})
raise forms.ValidationError(exc)
if hasattr(self, 'check_for_test_cookie'): # Dropped in django 1.7
self.check_for_test_cookie()
return self.cleaned_data