forked from CGM_Public/pretix_original
- [x] attendee names - [x] Invoice address names - [x] Data migration - [x] API serializers - [x] orderposition - [x] cartposition - [x] invoiceaddress - [x] checkinlistposition - [x] position API search - [x] invoice API search - [x] business/individual required toggle - [x] Split columns in CSV exports - [x] ticket editor - [x] shredder - [x] ticket/invoice sample data - [x] order search - [x] Handle changed naming scheme - [x] tests - [x] make use in: - [x] Boabee - [x] Certificate download order - [x] Badge download order - [x] Ticket download order - [x] Document new MySQL requirement - [x] Plugins
This commit is contained in:
@@ -302,10 +302,10 @@ class ApiSearchView(ApiView):
|
||||
else:
|
||||
ops = qs.filter(
|
||||
Q(secret__istartswith=query)
|
||||
| Q(attendee_name__icontains=query)
|
||||
| Q(addon_to__attendee_name__icontains=query)
|
||||
| Q(attendee_name_cached__icontains=query)
|
||||
| Q(addon_to__attendee_name_cached__icontains=query)
|
||||
| Q(order__code__istartswith=query)
|
||||
| Q(order__invoice_address__name__icontains=query)
|
||||
| Q(order__invoice_address__name_cached__icontains=query)
|
||||
)[:25]
|
||||
|
||||
response['results'] = [serialize_op(op, bool(op.last_checked_in), self.config.list) for op in ops]
|
||||
|
||||
Reference in New Issue
Block a user