diff --git a/archiv/filters.py b/archiv/filters.py index ad51fd7..c8988c6 100644 --- a/archiv/filters.py +++ b/archiv/filters.py @@ -526,6 +526,14 @@ class TextListFilter(django_filters.FilterSet): help_text=Text._meta.get_field('kommentar').help_text, label=Text._meta.get_field('kommentar').verbose_name ) + rvn_stelle_text_text__key_word = django_filters.ModelMultipleChoiceFilter( + queryset=KeyWord.objects.all(), + help_text='Keyword', + label='Keyword', + widget=autocomplete.Select2Multiple( + url="archiv-ac:ort-autocomplete", + ) + ) class Meta: model = Text diff --git a/archiv/forms.py b/archiv/forms.py index b4e437b..ff50d2c 100644 --- a/archiv/forms.py +++ b/archiv/forms.py @@ -382,6 +382,7 @@ def __init__(self, *args, **kwargs): 'legacy_pk', 'autor', 'title', + 'rvn_stelle_text_text__key_word', 'jahrhundert', 'not_before', 'not_after',