Opened 11 years ago

Closed 10 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: master
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


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 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Harm Geerts

comment:1 Changed 11 years ago by Julian Bez

Triage Stage: UnreviewedAccepted

comment:2 Changed 10 years ago by Thejaswi Puthraya

Component: UncategorizedDatabase layer (models, ORM)

comment:3 Changed 10 years ago by Chris Beaven

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