From a8077a0588c720b746780749c8eedd5f9ba20da8 Mon Sep 17 00:00:00 2001 From: Birger Schacht Date: Wed, 18 Oct 2023 10:04:07 +0200 Subject: [PATCH] fix: drop `collections` as default field from entities filter `collections` is a field from TempEntityClass - it does not have to be hardcoded in the filter. If it exists in the model, the filter will show it anyway. Closes: #354 --- apis_core/apis_entities/filters.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apis_core/apis_entities/filters.py b/apis_core/apis_entities/filters.py index b28ebbbd4..1da9eba1c 100644 --- a/apis_core/apis_entities/filters.py +++ b/apis_core/apis_entities/filters.py @@ -53,10 +53,6 @@ class GenericEntityListFilter(django_filters.FilterSet): method=related_property_name, label="Related property" ) - collection = django_filters.ModelMultipleChoiceFilter( - queryset=Collection.objects.all() - ) - # TODO: look into how the date values can be intercepted so that they can be parsed with the same logic as in edit forms start_date = django_filters.DateFromToRangeFilter() end_date = django_filters.DateFromToRangeFilter()