Merge ~maxiberta/canonical-identity-provider:skip-username-validation-if-unchanged into canonical-identity-provider:master
Proposed by
Maximiliano Bertacchini
Status: | Merged |
---|---|
Approved by: | Maximiliano Bertacchini |
Approved revision: | 6e67aed5a2cec86ad92628a9c74e97d4abddf214 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~maxiberta/canonical-identity-provider:skip-username-validation-if-unchanged |
Merge into: | canonical-identity-provider:master |
Diff against target: |
61 lines (+29/-4) 2 files modified
src/identityprovider/forms.py (+14/-4) src/identityprovider/tests/test_forms.py (+15/-0) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Daniel Manrique (community) | Approve | ||
Review via email: mp+397386@code.launchpad.net |
Commit message
Skip username validation in EditAccountForm if unchanged
Description of the change
The introduction of detailed username validation errors added form field validators on the username field. But, these validators run *before* the form's custom clean_username(), which contains the logic for skipping if unchanged.
https:/
To post a comment you must log in.
+1, I think this was my fault right? :(