Fix missing checks in 38a19bb58

This commit is contained in:
Raphael Michel
2019-12-25 20:26:47 +01:00
parent 38a19bb58b
commit 80a7c45e05

View File

@@ -785,12 +785,7 @@ class OrderDownloadMixin:
return self.error(_('You requested an invalid ticket output type.'))
if 'async_id' in request.GET and settings.HAS_CELERY:
return self.get_result(request)
ct = self.get_last_ct()
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)
return self.post(request, *args, **kwargs)
def post(self, request, *args, **kwargs):
if not self.output or not self.output.is_enabled: