mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix missing checks in 38a19bb58
This commit is contained in:
@@ -785,12 +785,7 @@ class OrderDownloadMixin:
|
|||||||
return self.error(_('You requested an invalid ticket output type.'))
|
return self.error(_('You requested an invalid ticket output type.'))
|
||||||
if 'async_id' in request.GET and settings.HAS_CELERY:
|
if 'async_id' in request.GET and settings.HAS_CELERY:
|
||||||
return self.get_result(request)
|
return self.get_result(request)
|
||||||
ct = self.get_last_ct()
|
return self.post(request, *args, **kwargs)
|
||||||
if ct:
|
|
||||||
return self.success(ct)
|
|
||||||
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