forked from CGM_Public/pretix_original
Rename reverse of CheckIn.position
This commit is contained in:
@@ -118,7 +118,7 @@ class ApiSearchView(ApiView):
|
||||
& Q(
|
||||
Q(secret__istartswith=query) | Q(attendee_name__icontains=query) | Q(order__code__istartswith=query)
|
||||
)
|
||||
).prefetch_related('pretixdroid_checkins')[:25]
|
||||
).prefetch_related('checkins')[:25]
|
||||
|
||||
response['results'] = [
|
||||
{
|
||||
@@ -127,7 +127,7 @@ class ApiSearchView(ApiView):
|
||||
'item': str(op.item),
|
||||
'variation': str(op.variation) if op.variation else None,
|
||||
'attendee_name': op.attendee_name,
|
||||
'redeemed': bool(op.pretixdroid_checkins.all()),
|
||||
'redeemed': bool(op.checkins.all()),
|
||||
'paid': op.order.status == Order.STATUS_PAID,
|
||||
} for op in ops
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user