Skip to content

Commit cf903fe

Browse files
post validate needs to test validation stopped
Co-authored-by: David Salvisberg <david.salvisberg@seantis.ch>
1 parent 7b7a450 commit cf903fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/onegov/form/fields.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ def post_validate(
416416
form: BaseForm,
417417
validation_stopped: bool
418418
) -> None:
419+
if validation_stopped:
420+
return
419421
if self.data and self.mimetypes:
420422
if self.data.get('mimetype') not in self.mimetypes:
421423
raise ValidationError(_(

0 commit comments

Comments
 (0)