mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-18 02:19:23 +02:00
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:
commit
79b23ad362
2 changed files with 35 additions and 3 deletions
32
src/registrar/migrations/0096_alter_domainrequest_status.py
Normal file
32
src/registrar/migrations/0096_alter_domainrequest_status.py
Normal 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,
|
||||
),
|
||||
),
|
||||
]
|
|
@ -43,14 +43,14 @@ class DomainRequest(TimeStampedModel):
|
|||
|
||||
# Constants for choice fields
|
||||
class DomainRequestStatus(models.TextChoices):
|
||||
STARTED = "started", "Started"
|
||||
SUBMITTED = "submitted", "Submitted"
|
||||
IN_REVIEW = "in review", "In review"
|
||||
ACTION_NEEDED = "action needed", "Action needed"
|
||||
APPROVED = "approved", "Approved"
|
||||
WITHDRAWN = "withdrawn", "Withdrawn"
|
||||
REJECTED = "rejected", "Rejected"
|
||||
INELIGIBLE = "ineligible", "Ineligible"
|
||||
SUBMITTED = "submitted", "Submitted"
|
||||
WITHDRAWN = "withdrawn", "Withdrawn"
|
||||
STARTED = "started", "Started"
|
||||
|
||||
class StateTerritoryChoices(models.TextChoices):
|
||||
ALABAMA = "AL", "Alabama (AL)"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue