Commit d8c36fcd authored by Willard's avatar Willard

Minor refactor

parent b58e050f
...@@ -42,8 +42,8 @@ def new_stall(): ...@@ -42,8 +42,8 @@ def new_stall():
def edit_stall(stall_id): def edit_stall(stall_id):
stall = Stall.query.get(stall_id) stall = Stall.query.get(stall_id)
form = StallRegisterForm() form = StallRegisterForm()
form.editing = True
form.location.choices = [(loc.id, loc.name) for loc in Location.query.all()] form.location.choices = [(loc.id, loc.name) for loc in Location.query.all()]
form.editing = True
if request.method == 'POST': if request.method == 'POST':
if form.validate(): if form.validate():
......
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