diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2021-06-20 14:30:47 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2021-06-20 14:31:03 +0200 |
commit | 6921c5032139a3844e2a60dabc80240dfb114440 (patch) | |
tree | e6bbc6a5bea406a8b5ecf3b9c5d1a7edf10dd3ea | |
parent | add avs number to form (diff) | |
download | scout-subs-6921c5032139a3844e2a60dabc80240dfb114440.tar.gz scout-subs-6921c5032139a3844e2a60dabc80240dfb114440.zip |
set foreign key to null when deleting
Diffstat (limited to '')
-rw-r--r-- | server/views.py | 1 | ||||
-rw-r--r-- | version.txt | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/server/views.py b/server/views.py index 7ba0173..a9dfa74 100644 --- a/server/views.py +++ b/server/views.py @@ -799,6 +799,7 @@ def doclist(request): if i.medical_data: i.medical_data.delete() i.medical_data.save() + i.medical_data = None i.save() else: error = True diff --git a/version.txt b/version.txt index b64ad0e..7655692 100644 --- a/version.txt +++ b/version.txt @@ -1,2 +1,2 @@ version=0.2 -rev=2 +rev=3 |