Sort WorkflowAction classes from the get_all() method.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -24,8 +24,8 @@ class WorkflowActionSelectionForm(forms.Form):
|
||||
|
||||
self.fields['klass'].choices = [
|
||||
(
|
||||
key, klass.label
|
||||
) for key, klass in WorkflowAction.get_all().items()
|
||||
klass.id(), klass.label
|
||||
) for klass in WorkflowAction.get_all()
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user