aboutsummaryrefslogtreecommitdiffstats
path: root/client/models.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/models.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/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/models.py b/client/models.py
index 5d59e3e..dd5d998 100644
--- a/client/models.py
+++ b/client/models.py
@@ -69,7 +69,7 @@ class Document(models.Model):
PersonalData, default=None, on_delete=models.PROTECT, null=True)
medical_data = models.ForeignKey(
- MedicalData, default=None, on_delete=models.PROTECT, null=True)
+ MedicalData, default=None, on_delete=models.SET_NULL, null=True)
signed_doc = models.FileField(default=None, upload_to='documents/', null=True)