This commit is contained in:
zandercymatics 2024-08-22 11:17:36 -06:00
parent ecafaa58c9
commit fbfab28f3b
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
5 changed files with 94 additions and 0 deletions

View file

@ -21,6 +21,7 @@ from .portfolio import Portfolio
from .domain_group import DomainGroup
from .suborganization import Suborganization
from .senior_official import SeniorOfficial
from .allowed_emails import AllowedEmails
__all__ = [
@ -46,6 +47,7 @@ __all__ = [
"DomainGroup",
"Suborganization",
"SeniorOfficial",
"AllowedEmails",
]
auditlog.register(Contact)
@ -70,3 +72,4 @@ auditlog.register(Portfolio)
auditlog.register(DomainGroup)
auditlog.register(Suborganization)
auditlog.register(SeniorOfficial)
auditlog.register(AllowedEmails)

View file

@ -0,0 +1,20 @@
from django.db import models
from .utility.time_stamped_model import TimeStampedModel
class AllowedEmails(TimeStampedModel):
"""
AllowedEmails is a whitelist for email addresses that we can send to
in non-production environments.
"""
email = models.EmailField(
unique=True,
null=False,
blank=False,
max_length=320,
)
def __str__(self):
return str(self.email)