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 <tim.orling@konsulko.com>

layerindex/migrations: update patch status

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
This commit is contained in:
Tim Orling 2022-04-09 18:59:39 -07:00
parent 7ef8152266
commit 4dd7f0ee8f
2 changed files with 19 additions and 0 deletions

View File

@ -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),
),
]

View File

@ -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)