0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00

Reduce queries in WorkflowObjectsToModeratePanel by adding workflow_state to select_related

This commit is contained in:
Sage Abdullah 2023-12-05 15:11:04 +00:00 committed by LB (Ben Johnston)
parent aec21c20ba
commit cc00c6a8af

View File

@ -163,6 +163,7 @@ class WorkflowObjectsToModeratePanel(Component):
"revision",
"task",
"revision__user",
"workflow_state",
)
.prefetch_related(
"revision__content_object",