Compare commits

...

1 Commits

Author SHA1 Message Date
Trenton H
85a3b0cd6b Prefetches the custom field instance and the custom field all at once 2026-04-21 07:54:38 -07:00

View File

@@ -968,7 +968,10 @@ class DocumentViewSet(
),
),
"tags",
"custom_fields",
Prefetch(
"custom_fields",
queryset=CustomFieldInstance.objects.select_related("field"),
),
"notes",
)
)