Update ProofTransfer

This commit is contained in:
yiorgos marinellis 2020-03-17 23:47:02 +01:00
parent 390fb30d4f
commit f6af58ef51
2 changed files with 2 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class ProofDevice(db.Model):
class ProofTransfer(JoinedTableMixin, Proof):
transfer_id = Column(UUID, ForeignKey(Trade.id), nullable=False)
transfer_id = Column(UUID(as_uuid=True), ForeignKey(Trade.id), nullable=False)
transfer = relationship(DisposeProduct,
backref=backref("proof_transfer",
lazy=True,

View File

@ -32,6 +32,7 @@ class ProofTransfer(Proof):
__doc__ = m.ProofTransfer.__doc__
transfer = NestedOn(s_action.DisposeProduct,
required=True,
data_key='transferID',
only_query='id')