aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <alepori@student.ethz.ch>2020-06-21 14:26:46 +0200
committerAndrea Lepori <alepori@student.ethz.ch>2020-06-21 14:26:46 +0200
commit4e3a07d57519d6964b8c946e929a09ba19c13590 (patch)
tree799982e64b4292187aee7b6996fa4c850d8dc3dc /accounts/views.py
parentDoc, doctypes, users all done (diff)
downloadscout-subs-4e3a07d57519d6964b8c946e929a09ba19c13590.tar.gz
scout-subs-4e3a07d57519d6964b8c946e929a09ba19c13590.zip
Pdf download, filter on doc type
Diffstat (limited to '')
-rw-r--r--accounts/views.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/accounts/views.py b/accounts/views.py
index 36f59cd..804a841 100644
--- a/accounts/views.py
+++ b/accounts/views.py
@@ -77,10 +77,16 @@ def personal(request):
else:
parent_group = request.user.groups.values_list('name', flat=True)[
0]
- if parent_group == "muta":
+ if parent_group == "colonia":
+ branca_castorini = "selected"
+ elif parent_group == "muta":
branca_lupetti = "selected"
elif parent_group == "reparto":
branca_esploratori = "selected"
+ elif parent_group == "posto":
+ branca_pionieri = "selected"
+ elif parent_group == "clan":
+ branca_rover = "selected"
else:
branca_default = "selected"