mirror of
https://github.com/pretix/pretix.git
synced 2026-09-14 16:24:43 +00:00
remove unused code
This commit is contained in:
@@ -1315,13 +1315,6 @@ class EventOrderPositionViewSet(OrderPositionViewSetMixin, viewsets.ModelViewSet
|
|||||||
as_attachment=True,
|
as_attachment=True,
|
||||||
content_type=ftype or 'application/binary'
|
content_type=ftype or 'application/binary'
|
||||||
)
|
)
|
||||||
resp['Content-Disposition'] = 'attachment; filename="{}-{}-{}-{}"'.format(
|
|
||||||
self.request.event.slug.upper(),
|
|
||||||
pos.order.code,
|
|
||||||
pos.positionid,
|
|
||||||
os.path.basename(answer.file.name).split('.', 1)[1]
|
|
||||||
)
|
|
||||||
return resp
|
|
||||||
|
|
||||||
@action(detail=True, url_name="printlog", url_path="printlog", methods=["POST"])
|
@action(detail=True, url_name="printlog", url_path="printlog", methods=["POST"])
|
||||||
def printlog(self, request, **kwargs):
|
def printlog(self, request, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user