Skip to content

Commit

Permalink
fix: drop collections as default field from entities filter
Browse files Browse the repository at this point in the history
`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
  • Loading branch information
b1rger committed Oct 18, 2023
1 parent 0b8b639 commit a8077a0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions apis_core/apis_entities/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit a8077a0

Please sign in to comment.