mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-18 05:48:13 +00:00
Fix: Prefetches the custom field instance and the custom field all at once (#12617)
This commit is contained in:
1 parent
ffaa2bb77a
commit
6017b11c42
1 file changed
+4
-1
@@ -968,7 +968,10 @@ class DocumentViewSet(
|
||||
),
|
||||
),
|
||||
"tags",
|
||||
"custom_fields",
|
||||
Prefetch(
|
||||
"custom_fields",
|
||||
queryset=CustomFieldInstance.objects.select_related("field"),
|
||||
),
|
||||
"notes",
|
||||
)
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user