Closed e-n-0 closed 3 years ago
I believe that clean()
should raise a ValidationError
when encountering an error ?
Especially if there is only one error, else we should use add_error()
instead of self.error_class
, if I'm reading the docs (badum tss) correctly.
IMO, the use of validators as suggested by @lportemo is a cleaner way to achieve our goal. It will also be more consistent if we decide to implement more validations steps in the future.
I believe we should instead focus on #331. Feel free to reopen this if you disagree.
Codecov Report
53.50% <11.11%> (-3.10%)
38.70% <0.00%> (-0.58%)
28.26% <0.00%> (-0.32%)
43.82% <0.00%> (+0.20%)
Continue to review full report at Codecov.