Opened 16 years ago
Closed 15 years ago
#7755 closed (fixed)
Allow EmailField(blank=True) with models validation
Reported by: | Harm Geerts | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Patch to prevent the email validator from validating a blank field.
If the field has blank=False it will be caught in Field.validate_full
Attachments (1)
Change History (4)
by , 16 years ago
Attachment: | django-models-validation-emailfield-blank.patch added |
---|
comment:1 by , 16 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 16 years ago
Component: | Uncategorized → Database layer (models, ORM) |
---|
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This works now.
EmailField
is a subclass ofRegexField
which does the right thing.