Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#1210 closed enhancement (fixed)

EmailField with List Support

Reported by: me@… Owned by: adrian
Component: Validators Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

I would like to see EmailField enhanced (or a new field type) to provide support/validation for lists of emails; hopefully following the proper RFC specification (seperated by semi-colons, addresses can be wrapped in < > and prefixed with a display name, et al).

Change History (2)

comment:1 Changed 9 years ago by Matias Hermanrud Fjeld <mhf@…>

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

do this:

from django.core.validators import isCommaSeparatedEmailList

class YourModel(models.model):
    addresses = models.CharField(..., validator_list=[isCommaSeparatedEmailList])

comment:2 Changed 9 years ago by anonymous

Or more likely models.TextField(...

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