Add Request.internal_comments

Using a one to one relationship to avoid the migration hell
that we're temporarily stuck in.
This commit is contained in:
richard-dds
2018-09-11 15:33:31 -04:00
parent 31d6bd3663
commit 100048afdf
4 changed files with 55 additions and 0 deletions

View File

@@ -46,6 +46,8 @@ class Request(Base):
"RequestRevision", back_populates="request", order_by="RequestRevision.sequence"
)
internal_comments = relationship("RequestInternalComment", uselist=False)
@property
def latest_revision(self):
if self.revisions: