schedule & diffusions check/update + cleanup Schedule methods

This commit is contained in:
bkfox
2020-05-30 14:50:07 +02:00
parent 687238752c
commit dfdcf78344
8 changed files with 46 additions and 108 deletions

View File

@ -9,7 +9,7 @@ from django.utils.functional import cached_property
from aircox import settings, utils
from .program import Program, ProgramChildQuerySet, \
BaseRerun, BaseRerunQuerySet
BaseRerun, BaseRerunQuerySet, Schedule
from .page import Page, PageQuerySet
@ -145,6 +145,10 @@ class Diffusion(BaseRerun):
episode = models.ForeignKey(
Episode, models.CASCADE, verbose_name=_('episode'),
)
schedule = models.ForeignKey(
Schedule, models.CASCADE, verbose_name=_('schedule'),
blank=True, null=True,
)
type = models.SmallIntegerField(
verbose_name=_('type'), default=TYPE_ON_AIR, choices=TYPE_CHOICES,
)