mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Allow to download tickets through GET requests
This commit is contained in:
@@ -788,7 +788,9 @@ class OrderDownloadMixin:
|
|||||||
ct = self.get_last_ct()
|
ct = self.get_last_ct()
|
||||||
if ct:
|
if ct:
|
||||||
return self.success(ct)
|
return self.success(ct)
|
||||||
return self.http_method_not_allowed(request)
|
return self.do('orderposition' if 'position' in kwargs else 'order',
|
||||||
|
self.order_position.pk if 'position' in kwargs else self.order.pk,
|
||||||
|
self.output.identifier)
|
||||||
|
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
if not self.output or not self.output.is_enabled:
|
if not self.output or not self.output.is_enabled:
|
||||||
|
|||||||
Reference in New Issue
Block a user