From 47b714101b3570294c08c08ff7891e8643e235f0 Mon Sep 17 00:00:00 2001 From: PCoder Date: Tue, 19 Feb 2019 23:39:47 +0100 Subject: [PATCH] Reformat code --- dal/forms.py | 6 ++++-- dal/urls.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/dal/forms.py b/dal/forms.py index ecbf9bc..3a0e7e9 100644 --- a/dal/forms.py +++ b/dal/forms.py @@ -19,10 +19,12 @@ class LoginForm(forms.Form): is_auth = authenticate(username=email, password=password) if not is_auth: raise forms.ValidationError( - _("Your username and/or password were incorrect.")) + _("Your username and/or password were incorrect.") + ) elif is_auth.validated == 0: raise forms.ValidationError( - _("Your account is not activated yet.")) + _("Your account is not activated yet.") + ) return self.cleaned_data def clean_email(self): diff --git a/dal/urls.py b/dal/urls.py index 10875b6..f977499 100644 --- a/dal/urls.py +++ b/dal/urls.py @@ -17,4 +17,4 @@ urlpatterns = [ path('reset///', ResetRequest.as_view()), path('reset/', ResetRequest.as_view(), name="reset"), path('', Index.as_view(), name="index"), -] +] \ No newline at end of file