Attempt at spinning off clientsubmission.
This commit is contained in:
@@ -848,7 +848,7 @@ class SubmissionType(BaseClass):
|
|||||||
name = Column(String(128), unique=True) #: name of submission type
|
name = Column(String(128), unique=True) #: name of submission type
|
||||||
info_map = Column(JSON) #: Where parsable information is found in the excel workbook corresponding to this type.
|
info_map = Column(JSON) #: Where parsable information is found in the excel workbook corresponding to this type.
|
||||||
defaults = Column(JSON) #: Basic information about this submission type
|
defaults = Column(JSON) #: Basic information about this submission type
|
||||||
instances = relationship("BasicSubmission", backref="submission_type") #: Concrete instances of this type.
|
instances = relationship("BasicSubmission") #: Concrete instances of this type.
|
||||||
template_file = Column(BLOB) #: Blank form for this type stored as binary.
|
template_file = Column(BLOB) #: Blank form for this type stored as binary.
|
||||||
processes = relationship("Process", back_populates="submission_types",
|
processes = relationship("Process", back_populates="submission_types",
|
||||||
secondary=submissiontypes_processes) #: Relation to equipment processes used for this type.
|
secondary=submissiontypes_processes) #: Relation to equipment processes used for this type.
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ class ClientSubmission(BaseClass, LogMixin):
|
|||||||
contact = relationship("Contact", back_populates="submissions") #: client org
|
contact = relationship("Contact", back_populates="submissions") #: client org
|
||||||
contact_id = Column(INTEGER, ForeignKey("_contact.id", ondelete="SET NULL",
|
contact_id = Column(INTEGER, ForeignKey("_contact.id", ondelete="SET NULL",
|
||||||
name="fk_BS_contact_id")) #: client lab id from _organizations
|
name="fk_BS_contact_id")) #: client lab id from _organizations
|
||||||
submission_type = relationship("SubmissionType", back_populates="instances") #: client org
|
submission_type = relationship("SubmissionType", back_populates="instances") #: archetype of this submission
|
||||||
submission_type_name = Column(String, ForeignKey("_submissiontype.name", ondelete="SET NULL",
|
submission_type_name = Column(String, ForeignKey("_submissiontype.name", ondelete="SET NULL",
|
||||||
name="fk_BS_subtype_name")) #: name of joined submission type
|
name="fk_BS_subtype_name")) #: name of joined submission type
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user