diff --git a/intervention/filters.py b/intervention/filters.py index 0a56b36b..dfef2ac0 100644 --- a/intervention/filters.py +++ b/intervention/filters.py @@ -21,7 +21,7 @@ class InterventionTableFilter(django_filters.FilterSet): ) sa = django_filters.BooleanFilter( method='_filter_show_all', - label=_("Show all"), + label=_("Show unshared"), label_suffix=_(""), widget=forms.CheckboxInput() ) @@ -72,6 +72,7 @@ class InterventionTableFilter(django_filters.FilterSet): Returns: """ + value = value.strip() # build filter expression q = Q(title__icontains=value) | Q(identifier__icontains=value) return queryset.filter(q) diff --git a/locale/de/LC_MESSAGES/django.mo b/locale/de/LC_MESSAGES/django.mo index 67390c8e..834639e8 100644 Binary files a/locale/de/LC_MESSAGES/django.mo and b/locale/de/LC_MESSAGES/django.mo differ diff --git a/locale/de/LC_MESSAGES/django.po b/locale/de/LC_MESSAGES/django.po index 615a0a78..50a51f77 100644 --- a/locale/de/LC_MESSAGES/django.po +++ b/locale/de/LC_MESSAGES/django.po @@ -13,7 +13,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2021-07-28 08:48+0200\n" +"POT-Creation-Date: 2021-07-28 08:51+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -122,8 +122,8 @@ msgid "Payment removed" msgstr "Zahlung gelöscht" #: intervention/filters.py:24 -msgid "Show all" -msgstr "Alle anzeigen" +msgid "Show unshared" +msgstr "Nicht freigegebene anzeigen" #: intervention/filters.py:30 msgid "Show recorded" @@ -1866,6 +1866,9 @@ msgstr "" msgid "A fontawesome icon field" msgstr "" +#~ msgid "Show all" +#~ msgstr "Alle anzeigen" + #~ msgid "This will remove '{}'. Are you sure?" #~ msgstr "Hiermit wird '{}' gelöscht. Sind Sie sicher?"