Opened 10 years ago

Closed 9 years ago

#2842 closed defect (wontfix)

AlwaysMatchesOtherField validator fails if other field not present

Reported by: dave AT Owned by: nobody
Component: Validators Version: master
Severity: normal Keywords:
Cc: gary.wilson@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The AlwaysMatchesOtherField validator tests against all_data[self.other] without first checking for the existence of the key self.other.
If it's not present, you get MultiValueDictKeyError.

Note that this happens even if the other field has is_required=True. See #2841 :-)

Change History (2)

comment:1 Changed 10 years ago by Gary Wilson <gary.wilson@…>

Cc: gary.wilson@… added

comment:2 Changed 9 years ago by Adrian Holovaty

Resolution: wontfix
Status: newclosed

Wontfix this one, as it's manipulator-related.

Note: See TracTickets for help on using tickets.
Back to Top