/django-multi-email-field

Field and widget to store a list of e-mail addresses in a Django project

Primary LanguagePythonGNU Lesser General Public License v3.0LGPL-3.0

Field and widget to store a list of e-mail addresses in a Django projects.

It provides:

  • A form field and a form widget to edit a list of e-mails in a Django form;
  • A model field to store the captured list of e-mails;

INSTALL

For now:

pip install https://github.com/fle/django-multi-email-field/archive/0.1.tar.gz

USAGE

  • Add multi_email_field to your INSTALLED_APPS:
# settings.py
INSTALLED_APPS = (
...
'multi_email_field',
)
  • Use provided form field and widget:
# forms.py
from django import forms
from multi_email_field.forms import MultiEmailField

class SignatureForm(forms.Form):
    emails = MultiEmailField()

IN YOUR MODELS

If you wan to store list of e-mails, you can use this:

from django.db import models
from multi_email_field.fields import MultiEmailField

class JSignatureModel(JSignatureFieldsMixin):
    MultiEmailField = MultiEmailField()

AUTHORS

makinacom