Skip to main content

Provides a model field and a form field to manage list of e-mails

Project description

build coverage pypi

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

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;

COMPATIBILITY

  • Python 2.7 and 3.5+

  • Django 1.8+, 2.0+ and 3.0+

INSTALL

For now:

pip install django-multi-email-field

USAGE

  • Add multi_email_field to your INSTALLED_APPS:

# settings.py
INSTALLED_APPS = (
...
'multi_email_field',
)
  • Use the provided form field and widget:

# forms.py
from django import forms
from multi_email_field.forms import MultiEmailField

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

IN YOUR MODELS

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

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

class ContactModel(models.Model):
    emails = MultiEmailField()

AUTHORS

makinacom

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-multi-email-field-0.7.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

django_multi_email_field-0.7.0-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file django-multi-email-field-0.7.0.tar.gz.

File metadata

File hashes

Hashes for django-multi-email-field-0.7.0.tar.gz
Algorithm Hash digest
SHA256 87be916dece0dde2da68ef7c5a253cef76e905f264dd1e4d2c8cb8ba55919bea
MD5 5fac2601c870cb5e039d0e9e370d3538
BLAKE2b-256 c6348cdeda9c227e67a35003dafe52627647eab1d7c765f0964cf3d88b18cf91

See more details on using hashes here.

File details

Details for the file django_multi_email_field-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_multi_email_field-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2c4daf08be582ad7a94c48845c6b4f5fb53e51ee45b0552c1c6a0c4a75b62c32
MD5 d4b81b77dd0606795ba3ea42f42d79e9
BLAKE2b-256 3bb626621e8dce62d786317ff96a688355db8c1d5977b054e851a2d33b796e9e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page