aboutsummaryrefslogtreecommitdiffstats
path: root/server/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'server/views.py')
-rw-r--r--server/views.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/views.py b/server/views.py
index 68c1e77..601bd0f 100644
--- a/server/views.py
+++ b/server/views.py
@@ -1050,6 +1050,12 @@ def doclist(request):
'error': error,
'error_text': error_text,
'settings': settings,
+ 'total_count': documents.count,
+ 'colonia_count': documents.filter(user__groups__name__contains="colonia").count,
+ 'muta_count': documents.filter(user__groups__name__contains="muta").count,
+ 'reparto_count': documents.filter(user__groups__name__contains="reparto").count,
+ 'posto_count': documents.filter(user__groups__name__contains="posto").count,
+ 'clan_count': documents.filter(user__groups__name__contains="clan").count,
}
# check if download multiple documents
@@ -1274,6 +1280,12 @@ def doclist_readonly(request):
'error': error,
'error_text': error_text,
'settings': settings,
+ 'total_count': documents.count,
+ 'colonia_count': documents.filter(user__groups__name__contains="colonia").count,
+ 'muta_count': documents.filter(user__groups__name__contains="muta").count,
+ 'reparto_count': documents.filter(user__groups__name__contains="reparto").count,
+ 'posto_count': documents.filter(user__groups__name__contains="posto").count,
+ 'clan_count': documents.filter(user__groups__name__contains="clan").count,
}
# check if download multiple documents