fix the fix

This commit is contained in:
Tomáš Mládek 2020-04-24 00:09:16 +02:00
parent 504b7b3cac
commit d6f0b20652

View file

@ -29,7 +29,7 @@ class BasePileView(TemplateView):
return { return {
'tags': tags, 'tags': tags,
'document_count': Document.objects.count(), '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') 'can_see_hidden': self.request.user.has_perm('pile.see_hidden')
} }
@ -58,7 +58,7 @@ class TagView(BasePileView):
documents = Document.objects.all() documents = Document.objects.all()
elif name_or_id == "_": elif name_or_id == "_":
tag = "UNTAGGED" tag = "UNTAGGED"
documents = Document.objects.untagged() documents = Document.objects.all().untagged()
else: else:
try: try:
try: try: