X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/7e9b43b2435668edbd58b304ef02c1171afec5a8..68e9d1b139c54e69d0afcbfb53df4b42ced27348:/sercom/subcontrollers/validate.py diff --git a/sercom/subcontrollers/validate.py b/sercom/subcontrollers/validate.py index e527e6e..524f311 100644 --- a/sercom/subcontrollers/validate.py +++ b/sercom/subcontrollers/validate.py @@ -21,6 +21,7 @@ def validate_set(cls, name, id, data, url='../edit'): r = validate_get(cls, name, id) try: r.set(**data) + return r except DuplicateEntryError, e: flash(_(u'No se pudo modificar el %s porque no es único (error: %s).') % (name, e))