change enum

This commit is contained in:
zandercymatics 2024-11-26 10:58:12 -07:00
parent c4a27489cc
commit d0f0d56620
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 3 additions and 4 deletions

View file

@ -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(),

View file

@ -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"