forked from CGM_Public/pretix_original
Skip ticket-attachment for text/uri-list
This commit is contained in:
@@ -158,6 +158,10 @@ def get_tickets_for_order(order, base_position=None):
|
|||||||
if not retval:
|
if not retval:
|
||||||
continue
|
continue
|
||||||
ct = CachedTicket.objects.get(pk=retval)
|
ct = CachedTicket.objects.get(pk=retval)
|
||||||
|
|
||||||
|
if ct.type == 'text/uri-list':
|
||||||
|
continue
|
||||||
|
|
||||||
tickets.append((
|
tickets.append((
|
||||||
"{}-{}-{}-{}{}".format(
|
"{}-{}-{}-{}{}".format(
|
||||||
order.event.slug.upper(), order.code, pos.positionid, ct.provider, ct.extension,
|
order.event.slug.upper(), order.code, pos.positionid, ct.provider, ct.extension,
|
||||||
|
|||||||
Reference in New Issue
Block a user