aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2023-09-13 12:54:38 +0200
committerAndrea Lepori <aleporia@gmail.com>2023-09-13 12:54:39 +0200
commit3c4eccb13b7b261758fd6ef709d2a06ea0fb47df (patch)
treeade70004311698f52c8e42a745b8c20c508123d8 /client/views.py
parentshorter approve pdf and updated terms (diff)
downloadscout-subs-3c4eccb13b7b261758fd6ef709d2a06ea0fb47df.tar.gz
scout-subs-3c4eccb13b7b261758fd6ef709d2a06ea0fb47df.zip
remove check for approved user
Diffstat (limited to 'client/views.py')
-rw-r--r--client/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/views.py b/client/views.py
index 236ae38..b470f8d 100644
--- a/client/views.py
+++ b/client/views.py
@@ -93,6 +93,7 @@ def index(request):
# divide the docs for each uc
all_invalid = True
+ no_docs = True
docs = []
for uc in ucs:
documents = Document.objects.filter(
@@ -117,14 +118,17 @@ def index(request):
invalid_flag = invalid_flag or no_attachment_flag
all_invalid = all_invalid and invalid_flag
docs.append([uc, documents, color, invalid_flag, no_attachment_flag, uc.branca == None])
+ no_docs = no_docs and (len(documents) == 0)
# show only docs of the user and non archived
vac_file = ["/server/media/", "/vac_certificate/doc"]
health_file = ["/server/media/", "/health_care_certificate/doc"]
sign_doc_file = ["/server/media/", "/signed_doc/doc"]
+ print(docs)
context = {
"docs": docs,
+ "no_docs": no_docs,
"all_invalid": all_invalid,
"vac_file": vac_file,
"health_file": health_file,