Add support for form media to DynamicFormMixin

Fix tag attach and remove action form media.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-06-09 02:30:13 -04:00
parent e5c92487de
commit 2ae2dfd687
5 changed files with 19 additions and 5 deletions

View File

@@ -78,7 +78,8 @@ class WorkflowAction(six.with_metaclass(WorkflowActionMetaclass, WorkflowActionB
def get_form_schema(self, request=None):
result = {
'fields': self.fields or (),
'widgets': getattr(self, 'widgets', {})
'media': getattr(self, 'media', {}),
'widgets': getattr(self, 'widgets', {}),
}
if hasattr(self, 'field_order'):