mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
CheckIn: Only run check_rules_qs conditionally on provided boolean
This commit is contained in:
@@ -285,6 +285,8 @@ with scopes_disabled():
|
||||
return queryset.filter(last_checked_in__isnull=not value)
|
||||
|
||||
def check_rules_qs(self, queryset, name, value):
|
||||
if not value:
|
||||
return queryset
|
||||
if not self.checkinlist.rules:
|
||||
return queryset
|
||||
return queryset.filter(
|
||||
|
||||
Reference in New Issue
Block a user