From d6f0b206524beda4c43f9d087b456c1c9079b6b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Fri, 24 Apr 2020 00:09:16 +0200 Subject: [PATCH] fix the fix --- sdbs_pile/pile/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdbs_pile/pile/views.py b/sdbs_pile/pile/views.py index 84d73e2..3426c90 100644 --- a/sdbs_pile/pile/views.py +++ b/sdbs_pile/pile/views.py @@ -29,7 +29,7 @@ class BasePileView(TemplateView): return { 'tags': tags, 'document_count': Document.objects.count(), - 'untagged_count': Document.objects.untagged().count(), + 'untagged_count': Document.objects.all().untagged().count(), 'can_see_hidden': self.request.user.has_perm('pile.see_hidden') } @@ -58,7 +58,7 @@ class TagView(BasePileView): documents = Document.objects.all() elif name_or_id == "_": tag = "UNTAGGED" - documents = Document.objects.untagged() + documents = Document.objects.all().untagged() else: try: try: