2020-06-08 20:25:22 -04:00
|
|
|
from django.db import models
|
|
|
|
|
2020-06-12 11:17:30 -04:00
|
|
|
class Television(VideoFields):
|
2020-06-08 20:25:22 -04:00
|
|
|
episodes = models.PositiveIntegerField('Number of Episodes', min_value=1, blank=True)
|
|
|
|
seasons = models.PositiveIntegerField('Number of Seasons', min_value=1, blank=True)
|
|
|
|
first_aired = models.DateField('First Aired Date', blank=True)
|
|
|
|
last_aired = models.DateField('Last Aired Date', blank=True)
|
|
|
|
networks = models.ForeignKey('Networks', blank=True)
|
|
|
|
status = models.CharField('Status', blank=True)
|
|
|
|
|
2020-06-12 11:17:30 -04:00
|
|
|
class Networks(models.Model):
|
2020-06-08 20:25:22 -04:00
|
|
|
name = models.CharField('Network')
|
|
|
|
|
2020-06-12 11:17:30 -04:00
|
|
|
class ShowtoNetworks(models.Model):
|
2020-06-08 20:25:22 -04:00
|
|
|
show = models.ForeignKey('Television')
|
|
|
|
network = models.ForeignKey('Networks')
|