Skip to content

Commit

Permalink
fix: exclude alternative_names from filters
Browse files Browse the repository at this point in the history
currently the JsonField used for the alternative_names
does not work with the auto generated filters.
This adds an empty FilterSet for VersionPerson
to add the exclude filters list to that endpoint.
  • Loading branch information
sennierer committed Dec 11, 2024
1 parent 36b6003 commit ed47224
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions apis_ontology/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ def __init__(self, *args, **kwargs):
filter.label = filter.label.replace("unaccent ", "")


class VersionPersonFilterSet(LegacyStuffMixinFilterSet):
pass


class PersonFilterSet(LegacyStuffMixinFilterSet):
collection = django_filters.ModelMultipleChoiceFilter(
queryset=SkosCollection.objects.all().order_by("name"),
Expand Down

0 comments on commit ed47224

Please sign in to comment.