Add user_uid to api output

This commit is contained in:
mike cullerton 2021-07-07 08:18:02 -04:00
parent 894377a607
commit c11b5cfb29
1 changed files with 2 additions and 1 deletions

View File

@ -116,6 +116,7 @@ class File(object):
instance.last_modified = data_model.date_created instance.last_modified = data_model.date_created
instance.latest_version = data_model.version instance.latest_version = data_model.version
instance.size = data_model.size instance.size = data_model.size
instance.user_uid = data_model.user_uid
else: else:
instance.last_modified = None instance.last_modified = None
instance.latest_version = None instance.latest_version = None
@ -143,7 +144,7 @@ class FileSchema(Schema):
fields = ["id", "name", "is_status", "is_reference", "content_type", fields = ["id", "name", "is_status", "is_reference", "content_type",
"primary", "primary_process_id", "workflow_spec_id", "workflow_id", "primary", "primary_process_id", "workflow_spec_id", "workflow_id",
"irb_doc_code", "last_modified", "latest_version", "type", "size", "data_store", "irb_doc_code", "last_modified", "latest_version", "type", "size", "data_store",
"document"] "document", "user_uid"]
unknown = INCLUDE unknown = INCLUDE
type = EnumField(FileType) type = EnumField(FileType)