mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
List of orders
This commit is contained in:
15
src/pretix/control/views/orders.py
Normal file
15
src/pretix/control/views/orders.py
Normal 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")
|
||||
Reference in New Issue
Block a user