Development #7354
decorators: add errorcollector() decorator, to help in creating clean() methods
Début:
26 mai 2015
Echéance:
% réalisé:
100%
Temps estimé:
Patch proposed:
Non
Planning:
Description
The decorator simplify this kind of code:
try:
super(Model, self).clean()
except ValidationError, e:
e.update_error_dict(errors)
Révisions associées
Historique
Mis à jour par Benjamin Dauvergne il y a presque 9 ans
- Statut changé de Nouveau à Résolu (à déployer)
- % réalisé changé de 0 à 100
Appliqué par commit authentic2|0423a0a503449ba257314b27eb66a9d06ef9f90b.
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
- Statut changé de Résolu (à déployer) à Solution déployée
Mis à jour par Benjamin Dauvergne il y a plus de 6 ans
- Statut changé de Solution déployée à Fermé
decorators: add errorcollector() decorator, to help in creating clean() methods
The decorator simplify this kind of code:
fixes #7354