first step for datawipe form

This commit is contained in:
Cayo Puigdefabregas 2022-02-03 11:27:16 +01:00
parent 4107d67832
commit 4ebb312e59
1 changed files with 19 additions and 0 deletions

View File

@ -529,3 +529,22 @@ class AllocateForm(NewActionForm):
is_valid = False
return is_valid
class DataWipeForm(NewActionForm):
url = URL(required= False, )
success = Boolean(required=False, default=False)
software = StringField()
date = DateField(u'endTime',
required=False,
id_document = StringField(u'documentId',
file_name = StringField(u'filename',
validate=validate.Length(max=100))
file_hash = StringField(u'hash',
default='',
validate=validate.Length(max=64))
def validate(self, extra_validators=None):
is_valid = super().validate(extra_validators)
return is_valid