[layerindex,2/4] layerindex/models.py: add Inactive-Upstream

Message ID 8293eee252fafdd714aed399f4fcf6f538da46bd.1649617288.git.tim.orling@konsulko.com
State New
Headers show
Series [layerindex,1/4] layerindex/urls.py: fix about url pattern | expand

Commit Message

Tim Orling April 10, 2022, 7:08 p.m. UTC
Add the newish Inactive-Upstream upstream status.

Add 0046_alter_patch_status.py migration.

Signed-off-by: Tim Orling <tim.orling@konsulko.com>

layerindex/migrations: update patch status

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
---
 .../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

Patch

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)