Remove disused labels
This commit is contained in:
parent
7856302028
commit
0ab0824913
1 changed files with 1 additions and 4 deletions
|
@ -59,10 +59,7 @@ class OrderItemForm(Form):
|
||||||
submit_button = SubmitField("Submit")
|
submit_button = SubmitField("Submit")
|
||||||
|
|
||||||
def populate(self, location: Location) -> None:
|
def populate(self, location: Location) -> None:
|
||||||
self.dish_id.choices = [
|
self.dish_id.choices = [(dish.id, dish.name) for dish in location.dishes]
|
||||||
(dish.id, (dish.name + ": " + price_range_string(dish.price_range())))
|
|
||||||
for dish in location.dishes
|
|
||||||
]
|
|
||||||
if not self.is_submitted() and self.comment.data is None:
|
if not self.is_submitted() and self.comment.data is None:
|
||||||
self.comment.data = request.args.get("comment")
|
self.comment.data = request.args.get("comment")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue