aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-07-31 10:45:56 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-07-31 10:45:56 +0200
commit0d24c3ca2c4810b5000e511900ad603d8b264205 (patch)
tree72d6529b616bd00ff6f61863d0fc2de11ab6f66d /client/views.py
parentperm staff for non primary group (diff)
downloadscout-subs-0d24c3ca2c4810b5000e511900ad603d8b264205.tar.gz
scout-subs-0d24c3ca2c4810b5000e511900ad603d8b264205.zip
self delete of medical data
Diffstat (limited to '')
-rw-r--r--client/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/views.py b/client/views.py
index 51351dd..ae5f2d5 100644
--- a/client/views.py
+++ b/client/views.py
@@ -81,9 +81,9 @@ def index(request):
medical = None
vac_file = ""
health_file = ""
- if i.document_type.personal_data:
+ if i.personal_data:
personal = i.personal_data
- if i.document_type.medical_data:
+ if i.medical_data:
medical = i.medical_data
if medical.vac_certificate.name: