aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-07-20 23:53:03 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-07-20 23:53:03 +0200
commit3a175662da52cc770d52e46a9abe2cd782aa2142 (patch)
treeb65ec8d8e717b1928e47482cb54bd0787f7a0f05 /accounts/views.py
parentreset password and decorators for login check (diff)
downloadscout-subs-3a175662da52cc770d52e46a9abe2cd782aa2142.tar.gz
scout-subs-3a175662da52cc770d52e46a9abe2cd782aa2142.zip
search users, show attachments, fancy pass reset
Diffstat (limited to 'accounts/views.py')
-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: