Update ProofTransfer
This commit is contained in:
parent
390fb30d4f
commit
f6af58ef51
|
@ -88,7 +88,7 @@ class ProofDevice(db.Model):
|
||||||
|
|
||||||
|
|
||||||
class ProofTransfer(JoinedTableMixin, Proof):
|
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,
|
transfer = relationship(DisposeProduct,
|
||||||
backref=backref("proof_transfer",
|
backref=backref("proof_transfer",
|
||||||
lazy=True,
|
lazy=True,
|
||||||
|
|
|
@ -32,6 +32,7 @@ class ProofTransfer(Proof):
|
||||||
__doc__ = m.ProofTransfer.__doc__
|
__doc__ = m.ProofTransfer.__doc__
|
||||||
transfer = NestedOn(s_action.DisposeProduct,
|
transfer = NestedOn(s_action.DisposeProduct,
|
||||||
required=True,
|
required=True,
|
||||||
|
data_key='transferID',
|
||||||
only_query='id')
|
only_query='id')
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue