aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-07-26 21:28:06 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-07-26 21:28:06 +0200
commite1deaaf4a239db742cea2d1e6c4f48a9656d8a0f (patch)
treec3bbe11e47616f702f4c56734430005a5fc04504 /accounts/views.py
parentuse webp to save images (diff)
downloadscout-subs-e1deaaf4a239db742cea2d1e6c4f48a9656d8a0f.tar.gz
scout-subs-e1deaaf4a239db742cea2d1e6c4f48a9656d8a0f.zip
bug fixes and visual improvements
Diffstat (limited to 'accounts/views.py')
-rw-r--r--accounts/views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/accounts/views.py b/accounts/views.py
index 562524e..cc402d2 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -86,11 +86,11 @@ def personal(request):
medic.misc = request.POST["misc"]
medic.save()
- if "branca" in request.POST:
- if request.POST["branca"] != "":
- request.user.groups.clear()
- request.user.groups.add(
- Group.objects.get(name=request.POST["branca"]))
+ #if "branca" in request.POST:
+ # if request.POST["branca"] != "":
+ # request.user.groups.clear()
+ # request.user.groups.add(
+ # Group.objects.get(name=request.POST["branca"]))
if "vac_certificate" in request.FILES:
myfile = request.FILES['vac_certificate']