From cc00c6a8af96960943d87c786f417a8686deae9b Mon Sep 17 00:00:00 2001 From: Sage Abdullah Date: Tue, 5 Dec 2023 15:11:04 +0000 Subject: [PATCH] Reduce queries in WorkflowObjectsToModeratePanel by adding workflow_state to select_related --- wagtail/admin/views/home.py | 1 + 1 file changed, 1 insertion(+) diff --git a/wagtail/admin/views/home.py b/wagtail/admin/views/home.py index 8bc0740a61..4a05dce3bf 100644 --- a/wagtail/admin/views/home.py +++ b/wagtail/admin/views/home.py @@ -163,6 +163,7 @@ class WorkflowObjectsToModeratePanel(Component): "revision", "task", "revision__user", + "workflow_state", ) .prefetch_related( "revision__content_object",