Commit 03656886 authored by Willard's avatar Willard

Fix FormView not returning anything on invalid form

parent 27dc41ff
...@@ -15,8 +15,7 @@ class FormView(View): ...@@ -15,8 +15,7 @@ class FormView(View):
if form.validate(): if form.validate():
return self.render_post(**kwargs) return self.render_post(**kwargs)
flash_form_errors(form) flash_form_errors(form)
elif request.method == 'GET': return self.render_get(**kwargs)
return self.render_get(**kwargs)
def get_form(self): def get_form(self):
raise NotImplementedError() raise NotImplementedError()
def render_post(self, **kwargs): def render_post(self, **kwargs):
......
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