mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Paginate list of gift cards
This commit is contained in:
@@ -938,6 +938,7 @@ class GiftCardListView(OrganizerDetailViewMixin, OrganizerPermissionRequiredMixi
|
|||||||
template_name = 'pretixcontrol/organizers/giftcards.html'
|
template_name = 'pretixcontrol/organizers/giftcards.html'
|
||||||
permission = 'can_manage_gift_cards'
|
permission = 'can_manage_gift_cards'
|
||||||
context_object_name = 'giftcards'
|
context_object_name = 'giftcards'
|
||||||
|
paginate_by = 50
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
s = GiftCardTransaction.objects.filter(
|
s = GiftCardTransaction.objects.filter(
|
||||||
|
|||||||
Reference in New Issue
Block a user