diff --git a/core/tickets/migrations/0007_alter_statechange_state.py b/core/tickets/migrations/0007_alter_statechange_state.py new file mode 100644 index 0000000..6a105a7 --- /dev/null +++ b/core/tickets/migrations/0007_alter_statechange_state.py @@ -0,0 +1,18 @@ +# Generated by Django 4.2.7 on 2024-01-19 20:10 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('tickets', '0006_issuethread_uuid'), + ] + + operations = [ + migrations.AlterField( + model_name='statechange', + name='state', + field=models.CharField(choices=[('pending_new', 'New'), ('pending_open', 'Open'), ('pending_shipping', 'Needs to be shipped'), ('pending_physical_confirmation', 'Needs to be confirmed physically'), ('pending_return', 'Needs to be returned'), ('pending_postponed', 'Postponed'), ('waiting_details', 'Waiting for details'), ('waiting_pre_shipping', 'Waiting for Address/Shipping Info'), ('closed_returned', 'Closed: Returned'), ('closed_shipped', 'Closed: Shipped'), ('closed_not_found', 'Closed: Not found'), ('closed_not_our_problem', 'Closed: Not our problem'), ('closed_duplicate', 'Closed: Duplicate'), ('closed_timeout', 'Closed: Timeout'), ('closed_spam', 'Closed: Spam'), ('closed_nothing_missing', 'Closed: Nothing missing'), ('closed_wtf', 'Closed: WTF'), ('found_open', 'Item Found and stored externally'), ('found_closed', 'Item Found and stored externally and closed')], default='pending_new', max_length=255), + ), + ] diff --git a/core/tickets/models.py b/core/tickets/models.py index 8616c92..4667b0f 100644 --- a/core/tickets/models.py +++ b/core/tickets/models.py @@ -11,6 +11,7 @@ STATE_CHOICES = ( ('pending_shipping', 'Needs to be shipped'), ('pending_physical_confirmation', 'Needs to be confirmed physically'), ('pending_return', 'Needs to be returned'), + ('pending_postponed', 'Postponed'), ('waiting_details', 'Waiting for details'), ('waiting_pre_shipping', 'Waiting for Address/Shipping Info'), ('closed_returned', 'Closed: Returned'), @@ -20,6 +21,10 @@ STATE_CHOICES = ( ('closed_duplicate', 'Closed: Duplicate'), ('closed_timeout', 'Closed: Timeout'), ('closed_spam', 'Closed: Spam'), + ('closed_nothing_missing', 'Closed: Nothing missing'), + ('closed_wtf', 'Closed: WTF'), + ('found_open', 'Item Found and stored externally'), + ('found_closed', 'Item Found and stored externally and closed'), ) diff --git a/web/src/views/Tickets.vue b/web/src/views/Tickets.vue index ebc6c26..0b31e4d 100644 --- a/web/src/views/Tickets.vue +++ b/web/src/views/Tickets.vue @@ -23,7 +23,7 @@ + 'pending_physical_confirmation','pending_return','pending_postponed'].map(stateInfo)">