releng: Fix django warnings

Fixes warnings for releng.Test.modules and releng.Test.rollback_modules
(fields.W340) null has no effect on ManyToManyField.
This commit is contained in:
Jelle van der Waa 2017-05-22 20:27:10 +02:00
parent 08eef67d6a
commit a215f25efa
3 changed files with 50 additions and 2 deletions

View File

@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('packages', '0002_auto_20160731_0556'),
]
operations = [
migrations.AlterField(
model_name='flagrequest',
name='user_email',
field=models.EmailField(max_length=254, verbose_name=b'email address'),
),
]

View File

@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('releng', '0003_release_populate_last_modified'),
]
operations = [
migrations.AlterField(
model_name='test',
name='modules',
field=models.ManyToManyField(to='releng.Module', blank=True),
),
migrations.AlterField(
model_name='test',
name='rollback_modules',
field=models.ManyToManyField(related_name='rollback_test_set', to='releng.Module', blank=True),
),
migrations.AlterField(
model_name='test',
name='user_email',
field=models.EmailField(max_length=254, verbose_name=b'email address'),
),
]

View File

@ -101,12 +101,12 @@ class Test(models.Model):
source = models.ForeignKey(Source)
clock_choice = models.ForeignKey(ClockChoice)
filesystem = models.ForeignKey(Filesystem)
modules = models.ManyToManyField(Module, null=True, blank=True)
modules = models.ManyToManyField(Module, blank=True)
bootloader = models.ForeignKey(Bootloader)
rollback_filesystem = models.ForeignKey(Filesystem,
related_name="rollback_test_set", null=True, blank=True)
rollback_modules = models.ManyToManyField(Module,
related_name="rollback_test_set", null=True, blank=True)
related_name="rollback_test_set", blank=True)
success = models.BooleanField(default=True)
comments = models.TextField(null=True, blank=True)