aboutsummaryrefslogtreecommitdiffstats
path: root/server/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-07-21 21:47:09 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-07-21 21:47:09 +0200
commita531c5e12a65ac7c216bb3f91e510c1d31fbb06e (patch)
treec306bfc36f54815759cfe4b15b8f296865e2b70e /server/views.py
parentmodify gitignore (diff)
downloadscout-subs-a531c5e12a65ac7c216bb3f91e510c1d31fbb06e.tar.gz
scout-subs-a531c5e12a65ac7c216bb3f91e510c1d31fbb06e.zip
static files, last improvements0.1
Diffstat (limited to 'server/views.py')
-rw-r--r--server/views.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/views.py b/server/views.py
index e9739c3..e4fea63 100644
--- a/server/views.py
+++ b/server/views.py
@@ -213,6 +213,9 @@ def doctype(request):
docc = DocumentType.objects.get(id=i)
if docc.group.name in parent_groups:
selected.append(docc)
+ else:
+ error = True
+ error_text = "Non puoi modificare un documento non del tuo gruppo"
for i in selected:
if request.POST["action"] == 'delete':
@@ -524,6 +527,8 @@ def doclist(request):
for i in documents:
personal = None
medical = None
+ vac_file = ""
+ health_file = ""
if i.document_type.personal_data:
personal = i.personal_data
if i.document_type.medical_data: