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:
parent
aec21c20ba
commit
cc00c6a8af
@ -163,6 +163,7 @@ class WorkflowObjectsToModeratePanel(Component):
|
||||
"revision",
|
||||
"task",
|
||||
"revision__user",
|
||||
"workflow_state",
|
||||
)
|
||||
.prefetch_related(
|
||||
"revision__content_object",
|
||||
|
Loading…
Reference in New Issue
Block a user