Opened 19 years ago
Closed 19 years ago
#3038 closed defect (fixed)
[patch] newforms: RegexField shouldn't validate an empty input if required is set to False
| Reported by: | 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)
Change History (3)
by , 19 years ago
| Attachment: | forms.patch added | 
|---|
comment:1 by , 19 years ago
| Component: | Core framework → django.newforms | 
|---|
comment:2 by , 19 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
  Note:
 See   TracTickets
 for help on using tickets.
    
proposed patch