aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Lepori <aleporia@gmail.com>2023-07-29 18:15:26 +0200
committerAndrea Lepori <aleporia@gmail.com>2023-07-29 18:15:26 +0200
commitdafdf39ca8954ad393e8c511fb744008e5a37c9f (patch)
tree074d339320d2aaf12f90f675bb7917ffada8270b
parentimprove performance of doctype (diff)
downloadscout-subs-dafdf39ca8954ad393e8c511fb744008e5a37c9f.tar.gz
scout-subs-dafdf39ca8954ad393e8c511fb744008e5a37c9f.zip
add missing select related0.7
Diffstat (limited to '')
-rw-r--r--server/views.py6
-rw-r--r--version.txt2
2 files changed, 4 insertions, 4 deletions
diff --git a/server/views.py b/server/views.py
index 5f19ec5..79ab72f 100644
--- a/server/views.py
+++ b/server/views.py
@@ -1244,7 +1244,7 @@ def doclist(request, type_id):
chips_groups += groups
# run query
- documents = Document.objects.filter(q_obj).select_related("personal_data", "medical_data", "document_type", "user")
+ documents = Document.objects.filter(q_obj).select_related("usercode", "personal_data", "medical_data", "document_type", "user")
users = documents.values("usercode__first_name", "usercode__last_name")
@@ -1423,7 +1423,7 @@ def doclist_table(request, type_id):
chips_groups += groups
# run query
- documents = Document.objects.filter(q_obj).select_related("personal_data", "medical_data", "document_type", "user")
+ documents = Document.objects.filter(q_obj).select_related("usercode", "personal_data", "medical_data", "document_type", "user")
users = documents.values("usercode__first_name", "usercode__last_name")
@@ -1631,7 +1631,7 @@ def doclist_readonly(request):
chips_groups += groups
# run query
- documents = Document.objects.filter(q_obj).select_related("personal_data", "medical_data", "document_type", "user")
+ documents = Document.objects.filter(q_obj).select_related("usercode", "personal_data", "medical_data", "document_type", "user")
users = documents.values("usercode__first_name", "usercode__last_name")
diff --git a/version.txt b/version.txt
index f081f5e..c72649a 100644
--- a/version.txt
+++ b/version.txt
@@ -1,2 +1,2 @@
version=0.6
-rev=43
+rev=44