From 832e0be8e0628d1bd72b26041aa5c16e3d586b5a Mon Sep 17 00:00:00 2001 From: jacobtoppm Date: Mon, 24 Feb 2020 15:18:06 +0000 Subject: [PATCH] Add task_state_class specification for custom tasks to docs --- docs/advanced_topics/custom_tasks.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/advanced_topics/custom_tasks.rst b/docs/advanced_topics/custom_tasks.rst index d189f8e2b0..5b473f5619 100644 --- a/docs/advanced_topics/custom_tasks.rst +++ b/docs/advanced_topics/custom_tasks.rst @@ -105,6 +105,8 @@ Your custom task must then be instructed to generate an instance of your custom panels = Task.panels + [FieldPanel('user')] + task_state_class = UserApprovalTaskState + # prevent editing of ``user`` after the task is created exclude_on_edit = {'user'}