Opened 17 years ago

Closed 17 years ago

#3038 closed defect (fixed)

[patch] newforms: RegexField shouldn't validate an empty input if required is set to False

Reported by: Thomas Steinacher <tom@…> Owned by: Adrian Holovaty
Component: Forms Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

RegexField shouldn't validate an empty input if the required attribute is set to False

I'm getting an error (Enter a valid e-mail address) when entering nothing into this email field:

 email = forms.EmailField(required=False)

Attachments (1)

forms.patch (617 bytes ) - added by Thomas Steinacher <tom@…> 17 years ago.
proposed patch

Download all attachments as: .zip

Change History (3)

by Thomas Steinacher <tom@…>, 17 years ago

Attachment: forms.patch added

proposed patch

comment:1 by Adrian Holovaty, 17 years ago

Component: Core frameworkdjango.newforms

comment:2 by Adrian Holovaty, 17 years ago

Resolution: fixed
Status: newclosed

(In [4111]) Fixed #3038 -- newforms: RegexField no longer validates empty input for required=False. Thanks for reporting, Thomas Steinacher

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