diff --git a/pretalx_lower_thirds/forms.py b/pretalx_lower_thirds/forms.py index 012eb79..89f8ea1 100644 --- a/pretalx_lower_thirds/forms.py +++ b/pretalx_lower_thirds/forms.py @@ -6,8 +6,7 @@ from i18nfield.forms import I18nFormField, I18nFormMixin, I18nTextInput class LowerThirdsSettingsForm(I18nFormMixin, HierarkeyForm): lower_thirds_no_talk_info = I18nFormField( help_text=_( - "Will be shown as talk title if there's currently no talk " - "running." + "Will be shown as talk title if there's currently no talk running." ), label=_('"no talk running" information'), widget=I18nTextInput, diff --git a/pretalx_lower_thirds/signals.py b/pretalx_lower_thirds/signals.py index c38e7f5..59245d4 100644 --- a/pretalx_lower_thirds/signals.py +++ b/pretalx_lower_thirds/signals.py @@ -1,6 +1,7 @@ from django.dispatch import receiver from django.urls import resolve, reverse -from django.utils.translation import gettext_noop, ugettext_lazy as _ +from django.utils.translation import gettext_noop +from django.utils.translation import ugettext_lazy as _ from i18nfield.strings import LazyI18nString from pretalx.common.models.settings import hierarkey from pretalx.orga.signals import nav_event_settings diff --git a/pretalx_lower_thirds/views.py b/pretalx_lower_thirds/views.py index 2edbc6f..6f45603 100644 --- a/pretalx_lower_thirds/views.py +++ b/pretalx_lower_thirds/views.py @@ -5,9 +5,7 @@ from django.http import JsonResponse from django.views.generic import FormView from django.views.generic.base import TemplateView from pretalx.agenda.views.schedule import ScheduleMixin -from pretalx.common.mixins.views import ( - EventPermissionRequired, PermissionRequired, -) +from pretalx.common.mixins.views import EventPermissionRequired, PermissionRequired from pretalx.schedule.exporters import ScheduleData from .forms import LowerThirdsSettingsForm @@ -57,8 +55,7 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView): "conference": { "slug": schedule.event.slug, "name": str(schedule.event.name), - "no_talk": str( - schedule.event.settings.lower_thirds_no_talk_info), + "no_talk": str(schedule.event.settings.lower_thirds_no_talk_info), }, "rooms": sorted( { @@ -71,10 +68,9 @@ class ScheduleView(EventPermissionRequired, ScheduleMixin, TemplateView): { "id": talk.submission.id, "start": talk.start.astimezone(tz).isoformat(), - "end": ( - talk.start + - dt.timedelta(minutes=talk.duration) - ).astimezone(tz).isoformat(), + "end": (talk.start + dt.timedelta(minutes=talk.duration)) + .astimezone(tz) + .isoformat(), "slug": talk.frab_slug, "title": talk.submission.title, "persons": sorted(