From 72c3b10d7da7c2be26a9dc010c70118945adf33c Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Thu, 23 Jan 2020 12:17:17 -0500 Subject: [PATCH] Adds content_type to files. --- example_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_data.py b/example_data.py index 947c3e55..63c47eac 100644 --- a/example_data.py +++ b/example_data.py @@ -48,7 +48,7 @@ class ExampleDataLoader: spec = WorkflowSpecModel(id=id, display_name=display_name, 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, workflow_spec_id=id) filename = os.path.join(app.root_path, 'static', 'bpmn', id + ".bpmn")