Development #7354
decorators: add errorcollector() decorator, to help in creating clean() methods
Start date:
26 May 2015
Due date:
% Done:
100%
Estimated time:
Patch proposed:
No
Planning:
Description
The decorator simplify this kind of code:
try:
super(Model, self).clean()
except ValidationError, e:
e.update_error_dict(errors)
Associated revisions
History
Updated by Benjamin Dauvergne almost 6 years ago
- Status changed from Nouveau to Résolu (à déployer)
- % Done changed from 0 to 100
Appliqué par commit authentic2|0423a0a503449ba257314b27eb66a9d06ef9f90b.
Updated by Benjamin Dauvergne about 5 years ago
- Status changed from Résolu (à déployer) to Solution déployée
decorators: add errorcollector() decorator, to help in creating clean() methods
The decorator simplify this kind of code:
fixes #7354