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 3.9+

  • Django 4.2+

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.8.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_multi_email_field-0.8.0-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file django_multi_email_field-0.8.0.tar.gz.

File metadata

File hashes

Hashes for django_multi_email_field-0.8.0.tar.gz
Algorithm Hash digest
SHA256 b63743ef9027e5522cee5094e8fb972b3be274705080a32bbede2e50b744f777
MD5 6ebfabbd2efb824aa1962dc62c82dbd0
BLAKE2b-256 c79578b24271e2465a468cedf5393144d010edade9b04d7e87b9a86fa1c3b403

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_multi_email_field-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d9da57226ea7e239b462bffdb121abe830931bd5cc702828b4e757784740b7fd
MD5 2875e4cc6bfed4e3fcb5b6d3c812dc63
BLAKE2b-256 ac4898d6ae06bc31b51809eb4b18861c2ace1f96b17c98c39df817a26a7a3686

See more details on using hashes here.

Supported by

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