Commit e56fc85d authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Order pizzas on overview page by product name

parent 0fa9577a
......@@ -24,7 +24,7 @@
</tr>
</thead>
<tbody>
{% for product in product_list.values %}
{% for product in product_list %}
<tr>
<td>
{{ product.name }}
......
......@@ -56,6 +56,8 @@ def overview(request, event_pk):
total_products += 1
total_money += order.product.price
product_list = sorted(product_list.values(), key=lambda x: x['name'])
context = {
'event': event,
'product_list': product_list,
......
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