Update ProofRecycle
This commit is contained in:
parent
e3f960aa8b
commit
390fb30d4f
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Reference in New Issue