From ed47224d615ca21bfbac3a3988f8754e494d0b4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Schl=C3=B6gl?= Date: Wed, 11 Dec 2024 15:21:02 +0100 Subject: [PATCH] fix: exclude alternative_names from filters 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. --- apis_ontology/filtersets.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apis_ontology/filtersets.py b/apis_ontology/filtersets.py index c039b2c..860875f 100644 --- a/apis_ontology/filtersets.py +++ b/apis_ontology/filtersets.py @@ -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"),