Attempt at spinning off clientsubmission.

This commit is contained in:
lwark
2025-05-05 10:50:55 -05:00
parent 2311732328
commit ea10798686
2 changed files with 2 additions and 2 deletions

View File

@@ -848,7 +848,7 @@ class SubmissionType(BaseClass):
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.
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.
processes = relationship("Process", back_populates="submission_types",
secondary=submissiontypes_processes) #: Relation to equipment processes used for this type.

View File

@@ -60,7 +60,7 @@ class ClientSubmission(BaseClass, LogMixin):
contact = relationship("Contact", back_populates="submissions") #: client org
contact_id = Column(INTEGER, ForeignKey("_contact.id", ondelete="SET NULL",
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",
name="fk_BS_subtype_name")) #: name of joined submission type