Adds content_type to files.
This commit is contained in:
parent
532c00fde5
commit
72c3b10d7d
|
@ -48,7 +48,7 @@ class ExampleDataLoader:
|
||||||
spec = WorkflowSpecModel(id=id,
|
spec = WorkflowSpecModel(id=id,
|
||||||
display_name=display_name,
|
display_name=display_name,
|
||||||
description=description)
|
description=description)
|
||||||
file_model = FileModel(name=id + ".bpmn", type=FileType.bpmn, version="1",
|
file_model = FileModel(name=id + ".bpmn", type=FileType.bpmn, content_type='text/xml', version="1",
|
||||||
last_updated=datetime.datetime.now(), primary=True,
|
last_updated=datetime.datetime.now(), primary=True,
|
||||||
workflow_spec_id=id)
|
workflow_spec_id=id)
|
||||||
filename = os.path.join(app.root_path, 'static', 'bpmn', id + ".bpmn")
|
filename = os.path.join(app.root_path, 'static', 'bpmn', id + ".bpmn")
|
||||||
|
|
Loading…
Reference in New Issue