Commit 429ecb3e authored by Damien Lespiau's avatar Damien Lespiau
Browse files

revision: Allows the test_state to be blank as well



We'll need that for admin support.
Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
parent 270720d2
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('patchwork', '0023_fix_test_state_order'),
]
operations = [
migrations.AlterField(
model_name='seriesrevision',
name='test_state',
field=models.SmallIntegerField(blank=True, null=True, choices=[(0, b'pending'), (1, b'info'), (2, b'success'), (3, b'warning'), (4, b'failure')]),
),
]
......@@ -596,7 +596,7 @@ class SeriesRevision(models.Model):
default=RevisionState.INCOMPLETE)
state_summary = jsonfield.JSONField(null=True)
test_state = models.SmallIntegerField(choices=TestState.STATE_CHOICES,
null=True)
null=True, blank=True)
class Meta:
unique_together = [('series', 'version')]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment