Commit f0bed937 authored by fred's avatar fred

remove useless null=True on many2many fields

parent 2d2d58c0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('nonstop', '0003_track_nonstop_zones'),
]
operations = [
migrations.AlterField(
model_name='track',
name='nonstop_zones',
field=models.ManyToManyField(to='emissions.Nonstop', blank=True),
),
]
......@@ -38,7 +38,7 @@ class Track(models.Model):
choices=LANGUAGES, blank=True)
sabam = models.BooleanField('SABAM', default=True)
cfwb = models.BooleanField('CFWB', default=False)
nonstop_zones = models.ManyToManyField('emissions.Nonstop', null=True, blank=True)
nonstop_zones = models.ManyToManyField('emissions.Nonstop', blank=True)
def get_absolute_url(self):
return reverse('track-view', kwargs={'pk': self.id})
......
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