mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Badges: Add per-position downloads
This commit is contained in:
@@ -217,8 +217,12 @@ class OrderPrintDo(EventPermissionRequiredMixin, AsyncAction, View):
|
||||
cf.type = 'application/pdf'
|
||||
cf.expires = now() + timedelta(days=3)
|
||||
cf.save()
|
||||
if 'position' in request.GET:
|
||||
positions = [p.pk for p in order.positions.filter(pk=request.GET.get('position'))]
|
||||
else:
|
||||
positions = [p.pk for p in order.positions.all()]
|
||||
return self.do(
|
||||
str(cf.id),
|
||||
self.request.event.pk,
|
||||
[order.pk],
|
||||
positions,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user