Merge pull request #2254 from cisagov/nl/2036-reorder-request-status-dropdown-options

(on meoward sandbox) Issue #2036 - reorder domain request status options
This commit is contained in:
CuriousX 2024-06-06 16:55:08 -06:00 committed by GitHub
commit 79b23ad362
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 3 deletions

View file

@ -0,0 +1,32 @@
# Generated by Django 4.2.10 on 2024-06-04 00:00
from django.db import migrations
import django_fsm
class Migration(migrations.Migration):
dependencies = [
("registrar", "0095_user_middle_name_user_title"),
]
operations = [
migrations.AlterField(
model_name="domainrequest",
name="status",
field=django_fsm.FSMField(
choices=[
("in review", "In review"),
("action needed", "Action needed"),
("approved", "Approved"),
("rejected", "Rejected"),
("ineligible", "Ineligible"),
("submitted", "Submitted"),
("withdrawn", "Withdrawn"),
("started", "Started"),
],
default="started",
max_length=50,
),
),
]

View file

@ -43,14 +43,14 @@ class DomainRequest(TimeStampedModel):
# Constants for choice fields # Constants for choice fields
class DomainRequestStatus(models.TextChoices): class DomainRequestStatus(models.TextChoices):
STARTED = "started", "Started"
SUBMITTED = "submitted", "Submitted"
IN_REVIEW = "in review", "In review" IN_REVIEW = "in review", "In review"
ACTION_NEEDED = "action needed", "Action needed" ACTION_NEEDED = "action needed", "Action needed"
APPROVED = "approved", "Approved" APPROVED = "approved", "Approved"
WITHDRAWN = "withdrawn", "Withdrawn"
REJECTED = "rejected", "Rejected" REJECTED = "rejected", "Rejected"
INELIGIBLE = "ineligible", "Ineligible" INELIGIBLE = "ineligible", "Ineligible"
SUBMITTED = "submitted", "Submitted"
WITHDRAWN = "withdrawn", "Withdrawn"
STARTED = "started", "Started"
class StateTerritoryChoices(models.TextChoices): class StateTerritoryChoices(models.TextChoices):
ALABAMA = "AL", "Alabama (AL)" ALABAMA = "AL", "Alabama (AL)"