Sets PB status to Active by default
This commit is contained in:
parent
49a4670b64
commit
340ae68eed
|
@ -31,10 +31,8 @@ class StudyModel(db.Model):
|
||||||
self.title = pbs.TITLE
|
self.title = pbs.TITLE
|
||||||
self.user_uid = pbs.NETBADGEID
|
self.user_uid = pbs.NETBADGEID
|
||||||
self.last_updated = pbs.DATE_MODIFIED
|
self.last_updated = pbs.DATE_MODIFIED
|
||||||
self.protocol_builder_status = ProtocolBuilderStatus.INCOMPLETE
|
|
||||||
|
|
||||||
if pbs.Q_COMPLETE:
|
self.protocol_builder_status = ProtocolBuilderStatus.ACTIVE
|
||||||
self.protocol_builder_status = ProtocolBuilderStatus.ACTIVE
|
|
||||||
if pbs.HSRNUMBER:
|
if pbs.HSRNUMBER:
|
||||||
self.protocol_builder_status = ProtocolBuilderStatus.OPEN
|
self.protocol_builder_status = ProtocolBuilderStatus.OPEN
|
||||||
if self.on_hold:
|
if self.on_hold:
|
||||||
|
|
Loading…
Reference in New Issue