From 4e3a07d57519d6964b8c946e929a09ba19c13590 Mon Sep 17 00:00:00 2001 From: Andrea Lepori Date: Sun, 21 Jun 2020 14:26:46 +0200 Subject: Pdf download, filter on doc type --- accounts/views.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'accounts') 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" -- cgit v1.2.1