summaryrefslogtreecommitdiff
path: root/program/models.py
diff options
context:
space:
mode:
authorErnesto Rico Schmidt <ernesto@ontolabs.com>2020-09-09 22:11:28 (GMT)
committerErnesto Rico Schmidt <ernesto@ontolabs.com>2020-09-09 22:11:28 (GMT)
commit4947b756d7fae0a8f1fb108e198e15b600e12da0 (patch)
tree601bf17385a86dab25d97e85ba149058cec155cd /program/models.py
parent45c7b5cd9b2c2d4c987372f391b6cc7d1922ae10 (diff)
Optimize imports. Format
Diffstat (limited to 'program/models.py')
-rw-r--r--program/models.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/program/models.py b/program/models.py
index 8630b35..206aee5 100644
--- a/program/models.py
+++ b/program/models.py
@@ -1,17 +1,16 @@
+from datetime import date, datetime, time, timedelta
+
+from dateutil.relativedelta import relativedelta
+from dateutil.rrule import rrule
from django.contrib.auth.models import User
from django.core.exceptions import ObjectDoesNotExist, ValidationError, MultipleObjectsReturned
-from django.urls import reverse
from django.db import models
from django.db.models import Q
+from django.urls import reverse
from django.utils.translation import ugettext_lazy as _
-
from tinymce import models as tinymce_models
-from datetime import date, datetime, time, timedelta
-from dateutil.relativedelta import relativedelta
-from dateutil.rrule import rrule
-
-from utils import get_automation_id_choices
+from .utils import get_automation_id_choices
class BroadcastFormat(models.Model):
@@ -234,7 +233,8 @@ class Show(models.Model):
hosts = models.ManyToManyField(Host, blank=True, related_name='shows', verbose_name=_("Hosts"))
owners = models.ManyToManyField(User, blank=True, related_name='shows', verbose_name=_("Owners"))
broadcastformat = models.ForeignKey(BroadcastFormat, related_name='shows', verbose_name=_("Broadcast format"))
- showinformation = models.ManyToManyField(ShowInformation, blank=True, related_name='shows', verbose_name=_("Show information"))
+ showinformation = models.ManyToManyField(ShowInformation, blank=True, related_name='shows',
+ verbose_name=_("Show information"))
showtopic = models.ManyToManyField(ShowTopic, blank=True, related_name='shows', verbose_name=_("Show topic"))
musicfocus = models.ManyToManyField(MusicFocus, blank=True, related_name='shows', verbose_name=_("Music focus"))
name = models.CharField(_("Name"), max_length=255)