Opened 9 years ago

Closed 8 years ago

#2842 closed defect (wontfix)

AlwaysMatchesOtherField validator fails if other field not present

Reported by: dave AT avaragado.org 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:

Description

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 8 years ago by Gary Wilson <gary.wilson@…>

  • Cc gary.wilson@… added

comment:2 Changed 8 years ago by adrian

  • Resolution set to wontfix
  • Status changed from new to closed

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

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