List of orders

This commit is contained in:
Raphael Michel
2015-03-20 17:11:58 +01:00
parent 63a3054b92
commit dbc3dff905
6 changed files with 99 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
from django.views.generic import ListView
from pretix.base.models import Order
class OrderList(ListView):
model = Order
context_object_name = 'orders'
template_name = 'pretixcontrol/orders/index.html'
paginate_by = 30
def get_queryset(self):
return Order.objects.current.filter(
event=self.request.event
).select_related("user")