Code

Opened 8 years ago

Closed 7 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 :-)

Attachments (0)

Change History (2)

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

  • Cc gary.wilson@… added

comment:2 Changed 7 years ago by adrian

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

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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.