API: Allow to filter events by testmode attribute

This commit is contained in:
Raphael Michel
2023-03-10 16:34:54 +01:00
parent 28b4982161
commit ee4081d9c3
3 changed files with 9 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ with scopes_disabled():
class Meta:
model = Event
fields = ['is_public', 'live', 'has_subevents']
fields = ['is_public', 'live', 'has_subevents', 'testmode']
def ends_after_qs(self, queryset, name, value):
expr = (