Project

General

Profile

Bug #8620

Role.clean() fails on role edit forms when slug starts with an underscore

Added by Benjamin Dauvergne almost 4 years ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
Start date:
13 Oct 2015
Due date:
% Done:

100%

Patch proposed:
No
Planning:
No

Description

Validation should be done on in a field validator and not in clean, as if the field is not present in the form, clean validation cannot be excluded, but field validation are excluded (through the clean_fields() method). For now we juste remove it.

Associated revisions

Revision 5c9ebd75 (diff)
Added by Benjamin Dauvergne almost 4 years ago

a2_rbac: do not validate if slug starts with an undercore in Role.clean() (fixes #8620)

History

#1 Updated by Benjamin Dauvergne almost 4 years ago

  • % Done changed from 0 to 100
  • Status changed from Nouveau to Résolu (à déployer)

#2 Updated by Benjamin Dauvergne over 3 years ago

  • Status changed from Résolu (à déployer) to Solution déployée

#3 Updated by Benjamin Dauvergne over 1 year ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF