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)

django-models-validation-emailfield-blank.patch (2.3 KB ) - added by Harm Geerts 16 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 by Julian Bez, 16 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Thejaswi Puthraya, 16 years ago

Component: UncategorizedDatabase layer (models, ORM)

comment:3 by Chris Beaven, 15 years ago

Resolution: fixed
Status: newclosed

This works now. EmailField is a subclass of RegexField which does the right thing.

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