fix the fix
This commit is contained in:
parent
504b7b3cac
commit
d6f0b20652
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue