Commit 151189cc authored by Willard's avatar Willard

Fix wrong form in RegisterView

parent 3327c176
...@@ -50,7 +50,7 @@ class RegisterView(FormView): ...@@ -50,7 +50,7 @@ class RegisterView(FormView):
db.session.commit() db.session.commit()
return redirect(url_for('login')) return redirect(url_for('login'))
def render_get(self): def render_get(self):
return render_template('register.html', form=form) return render_template('register.html', form=self.get_form())
def get_form(self): def get_form(self):
return OwnerRegisterForm() return OwnerRegisterForm()
......
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