mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Allow to show all vouchers with empty tags
This commit is contained in:
@@ -796,7 +796,10 @@ class VoucherFilterForm(FilterForm):
|
||||
|
||||
if fdata.get('tag'):
|
||||
s = fdata.get('tag').strip()
|
||||
qs = qs.filter(tag__icontains=s)
|
||||
if s == '<>':
|
||||
qs = qs.filter(Q(tag__isnull=True) | Q(tag=''))
|
||||
else:
|
||||
qs = qs.filter(tag__icontains=s)
|
||||
|
||||
if fdata.get('qm'):
|
||||
s = fdata.get('qm')
|
||||
|
||||
Reference in New Issue
Block a user