Allow 'none' for progress_status

Well this fixes tests but also, I dont think you necessarily have this right off the bat if you havent done anything in a study, which i handle on the frontend. so null is fine
This commit is contained in:
alicia pritchett 2021-12-13 12:34:32 -05:00
parent 8b27423172
commit cdaad5dcc0
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class StudySchema(ma.Schema):
warnings = fields.List(fields.Nested(ApiErrorSchema), dump_only=True) warnings = fields.List(fields.Nested(ApiErrorSchema), dump_only=True)
protocol_builder_status = EnumField(StudyStatus, by_value=True) protocol_builder_status = EnumField(StudyStatus, by_value=True)
status = EnumField(StudyStatus, by_value=True) status = EnumField(StudyStatus, by_value=True)
progress_status = EnumField(ProgressStatus, by_value=True) progress_status = EnumField(ProgressStatus, by_value=True, allow_none=True)
short_title = fields.String(allow_none=True) short_title = fields.String(allow_none=True)
sponsor = fields.String(allow_none=True) sponsor = fields.String(allow_none=True)
ind_number = fields.String(allow_none=True) ind_number = fields.String(allow_none=True)