diff --git a/docs/advanced_topics/custom_tasks.rst b/docs/advanced_topics/custom_tasks.rst index 07c15d7905..a191464571 100644 --- a/docs/advanced_topics/custom_tasks.rst +++ b/docs/advanced_topics/custom_tasks.rst @@ -195,6 +195,19 @@ For example: return TaskState.objects.none() +``Task.get_description()``` + +A class method that returns the human-readable description for the task. + +For example: + +.. code-block:: python + + @classmethod + def get_description(cls): + return _("Members of the chosen Wagtail Groups can approve this task") + + Adding notifications ~~~~~~~~~~~~~~~~~~~~ diff --git a/wagtail/admin/templates/wagtailadmin/workflows/select_task_type.html b/wagtail/admin/templates/wagtailadmin/workflows/select_task_type.html index fd298084d5..8245cc424a 100644 --- a/wagtail/admin/templates/wagtailadmin/workflows/select_task_type.html +++ b/wagtail/admin/templates/wagtailadmin/workflows/select_task_type.html @@ -12,12 +12,15 @@ {% if task_types %}