mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-28 20:13:46 +02:00
change enum
This commit is contained in:
parent
c4a27489cc
commit
d0f0d56620
2 changed files with 3 additions and 4 deletions
|
@ -457,7 +457,7 @@ class MemberExport(BaseExport):
|
||||||
user=OuterRef("user"),
|
user=OuterRef("user"),
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
then=Value(DefaultEmail.HELP_EMAIL.value),
|
then=Value(DefaultUserValues.HELP_EMAIL.value),
|
||||||
),
|
),
|
||||||
default=F("user__email"),
|
default=F("user__email"),
|
||||||
output_field=CharField(),
|
output_field=CharField(),
|
||||||
|
|
|
@ -29,7 +29,7 @@ class LogCode(Enum):
|
||||||
DEFAULT = 5
|
DEFAULT = 5
|
||||||
|
|
||||||
|
|
||||||
class DefaultEmail(StrEnum):
|
class DefaultEmail(Enum):
|
||||||
"""Stores the string values of default emails
|
"""Stores the string values of default emails
|
||||||
|
|
||||||
Overview of emails:
|
Overview of emails:
|
||||||
|
@ -40,7 +40,6 @@ class DefaultEmail(StrEnum):
|
||||||
|
|
||||||
PUBLIC_CONTACT_DEFAULT = "dotgov@cisa.dhs.gov"
|
PUBLIC_CONTACT_DEFAULT = "dotgov@cisa.dhs.gov"
|
||||||
LEGACY_DEFAULT = "registrar@dotgov.gov"
|
LEGACY_DEFAULT = "registrar@dotgov.gov"
|
||||||
HELP_EMAIL = "help@get.gov"
|
|
||||||
|
|
||||||
|
|
||||||
class DefaultUserValues(StrEnum):
|
class DefaultUserValues(StrEnum):
|
||||||
|
@ -50,7 +49,7 @@ class DefaultUserValues(StrEnum):
|
||||||
- SYSTEM: "System" <= Default username
|
- SYSTEM: "System" <= Default username
|
||||||
- UNRETRIEVED: "Unretrieved" <= Default email state
|
- UNRETRIEVED: "Unretrieved" <= Default email state
|
||||||
"""
|
"""
|
||||||
|
HELP_EMAIL = "help@get.gov"
|
||||||
SYSTEM = "System"
|
SYSTEM = "System"
|
||||||
UNRETRIEVED = "Unretrieved"
|
UNRETRIEVED = "Unretrieved"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue