Commit 55db83d6 authored by fred's avatar fred

attach nonstop zone data to nonstop tracks

parent d2d1bd61
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('emissions', '0003_newsitem_event_date'),
('nonstop', '0002_somalogline_on_air'),
]
operations = [
migrations.AddField(
model_name='track',
name='nonstop_zones',
field=models.ManyToManyField(to='emissions.Nonstop', null=True, blank=True),
preserve_default=True,
),
]
......@@ -38,6 +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)
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