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)
ticket = 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):
__doc__ = m.ProofRecycling.__doc__
collection_point = SanitizedStr(default='')
date = DateTime()
contact = SanitizedStr(default='')
ticket = SanitizedStr(default='')
gps_location = SanitizedStr(default='')
collection_point = SanitizedStr(default='', data_key='collectionPoint', required=True)
date = DateTime('iso', required=True)
contact = SanitizedStr(default='', required=True)
ticket = SanitizedStr(default='', required=True)
gps_location = SanitizedStr(default='', data_key='gpsLocation', required=True)
recycler_code = SanitizedStr(default='', data_key='recyclerCode', required=True)