Opened 8 years ago

Closed 7 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: UI/UX:


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

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Harm Geerts

comment:1 Changed 8 years ago by julianb

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

comment:2 Changed 7 years ago by thejaswi_puthraya

  • Component changed from Uncategorized to Database layer (models, ORM)

comment:3 Changed 7 years ago by SmileyChris

  • Resolution set to fixed
  • Status changed from new to closed

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