kopia lustrzana https://github.com/wagtail/wagtail
Add task_state_class specification for custom tasks to docs
rodzic
27c90d8efc
commit
832e0be8e0
|
@ -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'}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue