Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#1210 closed enhancement (fixed)

EmailField with List Support

Reported by: me@… Owned by: Adrian Holovaty
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: no UI/UX: no

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 by Matias Hermanrud Fjeld <mhf@…>, 18 years ago

Resolution: fixed
Status: newclosed

do this:

from django.core.validators import isCommaSeparatedEmailList

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

comment:2 by anonymous, 18 years ago

Or more likely models.TextField(...

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