Create MailingList model
Feature Request
Description
We want to create a new MailingList
object that serves as the basis of sending newsletters and other articles en masse.
The MailingList
's primary concern is to hold a series of Contributor
accounts whose primary addresses will be added to be BCC field of a generic EmailForm
.
The list can be manually edited, and may also be automatically updated daily via a cronjob / management command.
Contributor
s can unsubscribe from the list and will thus be added to separate unsubscribed field.
Model Structure
Fields
-
name: str
, name of the mailing list, to appear as encapsulating the email contents (among other things) -
slug: str
, internal name identifying the mailing list for automation purposes -
is_opt_in: bool = False
, if True, automatically consider new people added to the list as unsubscribed. -
eligible_subscribers: ForeignKey[Contributor]
, can subscribe to this mailing list and may be sent emails (depending on whether it is opt in or unsubscribed) -
unsubscribed: ForeignKey[Contributor]
, people who have unsubscribed from the mailing list and will be excluded from it
Methods
-
@property
email_list
, returns a definitive list of emails to be bcc'd