diff options
author | Andrea Lepori <aleporia@gmail.com> | 2023-07-27 16:16:25 +0200 |
---|---|---|
committer | Andrea Lepori <aleporia@gmail.com> | 2023-07-27 16:16:26 +0200 |
commit | 02667f162ecaa344c0fbee54fe0ef11bdee9cb2a (patch) | |
tree | 45a52f3928ffa2315dd4f2462df9e3901797300b /server/views.py | |
parent | verify attachments upload (diff) | |
download | scout-subs-02667f162ecaa344c0fbee54fe0ef11bdee9cb2a.tar.gz scout-subs-02667f162ecaa344c0fbee54fe0ef11bdee9cb2a.zip |
new uc fix document lists
Diffstat (limited to 'server/views.py')
-rw-r--r-- | server/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/views.py b/server/views.py index edb9d0c..b7a8094 100644 --- a/server/views.py +++ b/server/views.py @@ -1182,7 +1182,7 @@ def doclist(request): # run query
documents = Document.objects.filter(q_obj).select_related("personal_data", "medical_data", "document_type", "user")
- users = documents.values("user__username", "user__first_name", "user__last_name")
+ users = documents.values("usercode__first_name", "usercode__last_name")
vac_file = ["/server/media/", "/vac_certificate/doc"]
health_file = ["/server/media/", "/health_care_certificate/doc"]
@@ -1347,7 +1347,7 @@ def doclist_table(request): # run query
documents = Document.objects.filter(q_obj).select_related("personal_data", "medical_data", "document_type", "user")
- users = documents.values("user__username", "user__first_name", "user__last_name")
+ users = documents.values("usercode__first_name", "usercode__last_name")
# get types and users for chips autocompletation
if request.user.is_staff:
@@ -1552,7 +1552,7 @@ def doclist_readonly(request): # run query
documents = Document.objects.filter(q_obj).select_related("personal_data", "medical_data", "document_type", "user")
- users = documents.values("user__username", "user__first_name", "user__last_name")
+ users = documents.values("usercode__first_name", "usercode__last_name")
vac_file = ["/server/media/", "/vac_certificate/doc"]
health_file = ["/server/media/", "/health_care_certificate/doc"]
|