refactor org literal mapping to dict, tweak error handing, lint

This commit is contained in:
Rachid Mrad 2023-10-13 17:05:33 -04:00
parent 5e787eeed3
commit 372ead1121
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF
2 changed files with 16 additions and 13 deletions

View file

@ -107,9 +107,9 @@ class DomainApplication(TimeStampedModel):
class OrganizationChoices(models.TextChoices):
"""
Primary organization choices:
For use in django admin
Keys need to match OrganizationChoicesVerbose
Primary organization choices:
For use in django admin
Keys need to match OrganizationChoicesVerbose
"""
FEDERAL = "federal", "Federal"
@ -124,9 +124,9 @@ class DomainApplication(TimeStampedModel):
class OrganizationChoicesVerbose(models.TextChoices):
"""
Secondary organization choices
For use in the application form and on the templates
Keys need to match OrganizationChoices
Secondary organization choices
For use in the application form and on the templates
Keys need to match OrganizationChoices
"""
FEDERAL = (