Sort WorkflowAction classes from the get_all() method.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-08-25 04:14:19 -04:00
parent a11b0eb39a
commit 60d157717f
2 changed files with 7 additions and 3 deletions

View File

@@ -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()
]