diff --git a/AKModel/admin.py b/AKModel/admin.py index bd2484747d00731bbd39c1171aded08bfdcc9dbb..449e5cbe13e4d1f911525e4e12c4bcddd6237dc8 100644 --- a/AKModel/admin.py +++ b/AKModel/admin.py @@ -29,7 +29,7 @@ class WishFilter(SimpleListFilter): ] def queryset(self, request, queryset): - annotated_queryset = AK.objects.annotate(owner_count=Count(F('owners'))) + annotated_queryset = queryset.annotate(owner_count=Count(F('owners'))) if self.value() == 'NO_WISH': return annotated_queryset.filter(owner_count__gt=0) if self.value() == 'WISH': diff --git a/AKModel/locale/de_DE/LC_MESSAGES/django.po b/AKModel/locale/de_DE/LC_MESSAGES/django.po index 017d444eecd223d6d31ec7febf411302f55a55b0..0424d2432fd669bbe5dffb5c159f676a0bc3e9bb 100644 --- a/AKModel/locale/de_DE/LC_MESSAGES/django.po +++ b/AKModel/locale/de_DE/LC_MESSAGES/django.po @@ -17,7 +17,7 @@ msgstr "AK-Wunsch" #: admin.py:27 msgid "Is wish" -msgstr "Is ein Wunsch" +msgstr "Ist ein Wunsch" #: admin.py:28 msgid "Is not a wish"