Update ProofRecycle

This commit is contained in:
yiorgos marinellis 2020-03-17 23:45:23 +01:00
parent e3f960aa8b
commit 390fb30d4f
2 changed files with 8 additions and 5 deletions

View File

@ -130,3 +130,5 @@ class ProofRecycling(JoinedTableMixin, Proof):
contact = Column(CIText(), default='', nullable=False) contact = Column(CIText(), default='', nullable=False)
ticket = Column(CIText(), default='', nullable=False) ticket = Column(CIText(), default='', nullable=False)
gps_location = Column(CIText(), default='', nullable=False) gps_location = Column(CIText(), default='', nullable=False)
recycler_code = Column(CIText(), default='', nullable=False)

View File

@ -57,8 +57,9 @@ class ProofReuse(Proof):
class ProofRecycling(Proof): class ProofRecycling(Proof):
__doc__ = m.ProofRecycling.__doc__ __doc__ = m.ProofRecycling.__doc__
collection_point = SanitizedStr(default='') collection_point = SanitizedStr(default='', data_key='collectionPoint', required=True)
date = DateTime() date = DateTime('iso', required=True)
contact = SanitizedStr(default='') contact = SanitizedStr(default='', required=True)
ticket = SanitizedStr(default='') ticket = SanitizedStr(default='', required=True)
gps_location = SanitizedStr(default='') gps_location = SanitizedStr(default='', data_key='gpsLocation', required=True)
recycler_code = SanitizedStr(default='', data_key='recyclerCode', required=True)