diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-21 21:47:09 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-21 21:47:09 +0200 |
commit | a531c5e12a65ac7c216bb3f91e510c1d31fbb06e (patch) | |
tree | c306bfc36f54815759cfe4b15b8f296865e2b70e /server/views.py | |
parent | modify gitignore (diff) | |
download | scout-subs-a531c5e12a65ac7c216bb3f91e510c1d31fbb06e.tar.gz scout-subs-a531c5e12a65ac7c216bb3f91e510c1d31fbb06e.zip |
static files, last improvements0.1
Diffstat (limited to '')
-rw-r--r-- | server/views.py | 5 |
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: |