Code

Opened 8 years ago

Closed 8 years ago

Last modified 8 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).

Attachments (0)

Change History (2)

comment:1 Changed 8 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 8 years ago by anonymous

Or more likely models.TextField(...

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.