Commit 22b0c0b2 authored by Tim Graham's avatar Tim Graham
Browse files

Fix E305 flake8 warnings

parent 71f05d34
......@@ -3,14 +3,20 @@ from .. import views
class EmailRecover(views.Recover):
search_fields = ['email']
email_recover = EmailRecover.as_view()
class UsernameRecover(views.Recover):
search_fields = ['username']
username_recover = UsernameRecover.as_view()
class InsensitiveRecover(views.Recover):
case_sensitive = False
insensitive_recover = InsensitiveRecover.as_view()
......@@ -47,6 +47,8 @@ class RecoverDone(SaltMixin, generic.TemplateView):
except signing.BadSignature:
raise Http404
return ctx
recover_done = RecoverDone.as_view()
......@@ -106,6 +108,8 @@ class Recover(SaltMixin, generic.FormView):
email = self.user.email
self.mail_signature = signing.dumps(email, salt=self.url_salt)
return super(Recover, self).form_valid(form)
recover = Recover.as_view()
......@@ -164,6 +168,8 @@ class Reset(SaltMixin, generic.FormView):
request=self.request
)
return redirect(self.get_success_url())
reset = Reset.as_view()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment