From 4dd7f0ee8f31df927c3862677dc59636988d8dfd Mon Sep 17 00:00:00 2001 From: Tim Orling Date: Sat, 9 Apr 2022 18:59:39 -0700 Subject: [PATCH] layerindex/models.py: add Inactive-Upstream Add the newish Inactive-Upstream upstream status. Add 0046_alter_patch_status.py migration. Signed-off-by: Tim Orling layerindex/migrations: update patch status Signed-off-by: Tim Orling --- .../migrations/0046_alter_patch_status.py | 18 ++++++++++++++++++ layerindex/models.py | 1 + 2 files changed, 19 insertions(+) create mode 100644 layerindex/migrations/0046_alter_patch_status.py diff --git a/layerindex/migrations/0046_alter_patch_status.py b/layerindex/migrations/0046_alter_patch_status.py new file mode 100644 index 0000000..74025c4 --- /dev/null +++ b/layerindex/migrations/0046_alter_patch_status.py @@ -0,0 +1,18 @@ +# Generated by Django 3.2.12 on 2022-04-10 19:20 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('layerindex', '0045_layerbranch_classicrecipe'), + ] + + operations = [ + migrations.AlterField( + model_name='patch', + name='status', + field=models.CharField(choices=[('U', 'Unknown'), ('A', 'Accepted'), ('P', 'Pending'), ('I', 'Inappropriate'), ('B', 'Backport'), ('S', 'Submitted'), ('D', 'Denied'), ('N', 'Inactive-Upstream')], default='U', max_length=1), + ), + ] diff --git a/layerindex/models.py b/layerindex/models.py index 329cc33..5ae60c3 100644 --- a/layerindex/models.py +++ b/layerindex/models.py @@ -561,6 +561,7 @@ class Patch(models.Model): ('B', 'Backport'), ('S', 'Submitted'), ('D', 'Denied'), + ('N', 'Inactive-Upstream'), ] recipe = models.ForeignKey(Recipe, on_delete=models.CASCADE) path = models.CharField(max_length=255)