Commit 151189cc authored by Willard's avatar Willard

Fix wrong form in RegisterView

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