diff options
author | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-20 23:53:03 +0200 |
---|---|---|
committer | Andrea Lepori <alepori@student.ethz.ch> | 2020-07-20 23:53:03 +0200 |
commit | 3a175662da52cc770d52e46a9abe2cd782aa2142 (patch) | |
tree | b65ec8d8e717b1928e47482cb54bd0787f7a0f05 /accounts/views.py | |
parent | reset password and decorators for login check (diff) | |
download | scout-subs-3a175662da52cc770d52e46a9abe2cd782aa2142.tar.gz scout-subs-3a175662da52cc770d52e46a9abe2cd782aa2142.zip |
search users, show attachments, fancy pass reset
Diffstat (limited to '')
-rw-r--r-- | accounts/views.py | 4 |
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: |