diff options
author | Andrea Lepori <aleporia@gmail.com> | 2023-07-24 17:20:39 +0200 |
---|---|---|
committer | Andrea Lepori <aleporia@gmail.com> | 2023-07-24 17:20:40 +0200 |
commit | 859c156921153ed158ac3e1e90b32ab10f214d94 (patch) | |
tree | 1514bd19890d774f699552c8b4a028d9f05900d8 /client/views.py | |
parent | show all docs for all owned ucs (diff) | |
download | scout-subs-859c156921153ed158ac3e1e90b32ab10f214d94.tar.gz scout-subs-859c156921153ed158ac3e1e90b32ab10f214d94.zip |
improve index show multiple peoples
Diffstat (limited to '')
-rw-r--r-- | client/views.py | 6 |
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 |