Commit 0fa9577a authored by Tom van Bussel's avatar Tom van Bussel
Browse files

Sort individual pizza orders by name of users

parent cf5f5699
......@@ -28,7 +28,8 @@ def orders(request, event_pk):
event = get_object_or_404(PizzaEvent, pk=event_pk)
context = {'event': event,
'orders': Order.objects.filter(pizza_event=event)
.prefetch_related('member', 'product')}
.prefetch_related('member', 'product')
return render(request, 'pizzas/orders.html', context)
Supports Markdown
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