aboutsummaryrefslogtreecommitdiffstats
path: root/client/views.py
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2023-07-24 17:20:39 +0200
committerAndrea Lepori <aleporia@gmail.com>2023-07-24 17:20:40 +0200
commit859c156921153ed158ac3e1e90b32ab10f214d94 (patch)
tree1514bd19890d774f699552c8b4a028d9f05900d8 /client/views.py
parentshow all docs for all owned ucs (diff)
downloadscout-subs-859c156921153ed158ac3e1e90b32ab10f214d94.tar.gz
scout-subs-859c156921153ed158ac3e1e90b32ab10f214d94.zip
improve index show multiple peoples
Diffstat (limited to 'client/views.py')
-rw-r--r--client/views.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/client/views.py b/client/views.py
index 4404cb5..dfb5dbf 100644
--- a/client/views.py
+++ b/client/views.py
@@ -40,8 +40,6 @@ def index(request):
# the user has no person
return render(request, 'client/index.html', {})
- groups = request.user.groups.all()
-
# user action
if request.method == "POST":
# get document id
@@ -104,12 +102,8 @@ def index(request):
health_file = ["/server/media/", "/health_care_certificate/doc"]
sign_doc_file = ["/server/media/", "/signed_doc/doc"]
- print(docs)
-
context = {
"docs": docs,
- "base_group": groups[0].name,
- "empty": len(docs) == 0,
"vac_file": vac_file,
"health_file": health_file,
"sign_doc_file": sign_doc_file