mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-21 10:16:13 +02:00
skeleton
This commit is contained in:
parent
ecafaa58c9
commit
fbfab28f3b
5 changed files with 94 additions and 0 deletions
|
@ -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)
|
||||
|
|
20
src/registrar/models/allowed_emails.py
Normal file
20
src/registrar/models/allowed_emails.py
Normal 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)
|
Loading…
Add table
Add a link
Reference in a new issue