Orders API: Allow to filter by subevent

This commit is contained in:
Raphael Michel
2021-12-06 12:50:33 +01:00
parent 5c55219d45
commit 8038f4e173
2 changed files with 6 additions and 0 deletions

View File

@@ -94,6 +94,7 @@ with scopes_disabled():
search = django_filters.CharFilter(method='search_qs')
item = django_filters.CharFilter(field_name='all_positions', lookup_expr='item_id')
variation = django_filters.CharFilter(field_name='all_positions', lookup_expr='variation_id')
subevent = django_filters.CharFilter(field_name='all_positions', lookup_expr='subevent_id')
class Meta:
model = Order