mirror of
https://github.com/pretix/pretix.git
synced 2026-05-07 15:34:02 +00:00
Category selection: Search internal names
This commit is contained in:
@@ -569,7 +569,7 @@ def category_select2(request, **kwargs):
|
|||||||
page = 1
|
page = 1
|
||||||
|
|
||||||
qs = request.event.categories.filter(
|
qs = request.event.categories.filter(
|
||||||
name__icontains=i18ncomp(query)
|
Q(name__icontains=i18ncomp(query)) | Q(internal_name__icontains=query)
|
||||||
).order_by('name')
|
).order_by('name')
|
||||||
|
|
||||||
total = qs.count()
|
total = qs.count()
|
||||||
|
|||||||
Reference in New Issue
Block a user