mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Event list: Ignore invalid filter attributes
This commit is contained in:
@@ -69,7 +69,9 @@ def filter_qs_by_attr(qs, request):
|
|||||||
property__name=attr,
|
property__name=attr,
|
||||||
)
|
)
|
||||||
|
|
||||||
prop = props[attr]
|
prop = props.get(attr)
|
||||||
|
if not prop:
|
||||||
|
continue
|
||||||
annotations = {'attr_{}'.format(i): Exists(emv_with_value)}
|
annotations = {'attr_{}'.format(i): Exists(emv_with_value)}
|
||||||
if qs.model == SubEvent:
|
if qs.model == SubEvent:
|
||||||
annotations['attr_{}_sub'.format(i)] = Exists(semv_with_value)
|
annotations['attr_{}_sub'.format(i)] = Exists(semv_with_value)
|
||||||
|
|||||||
Reference in New Issue
Block a user