Add task_state_class specification for custom tasks to docs

pull/6257/head
jacobtoppm 2020-02-24 15:18:06 +00:00 zatwierdzone przez Matt Westcott
rodzic 27c90d8efc
commit 832e0be8e0
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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'}