aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/views.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--accounts/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/accounts/views.py b/accounts/views.py
index 24e1b96..369e173 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -99,11 +99,11 @@ def personal(request):
medic.save()
if request.POST["delete_vac"] == 'vac':
- medic.vac_certificate.delete()
+ medic.vac_certificate = None
medic.save()
if request.POST["delete_health"] == 'health':
- medic.health_care_certificate.delete()
+ medic.health_care_certificate = None
medic.save()
if len(request.user.groups.values_list('name', flat=True)) == 0: