diff --git a/src/pretix/helpers/daterange.py b/src/pretix/helpers/daterange.py index edd9d7ab3..1c1fde031 100644 --- a/src/pretix/helpers/daterange.py +++ b/src/pretix/helpers/daterange.py @@ -34,9 +34,7 @@ from django.utils.html import format_html from django.utils.safestring import mark_safe -from django.utils.translation import ( - get_language, gettext_lazy as _, pgettext_lazy, -) +from django.utils.translation import get_language, pgettext_lazy from pretix.helpers.templatetags.date_fast import date_fast as _date @@ -103,7 +101,7 @@ def daterange(df, dt, as_html=False): until=until, ) - return _("{date_from}{until}{date_to}").format( + return "{date_from}{until}{date_to}".format( date_from=_date(df, "DATE_FORMAT"), date_to=_date(dt, "DATE_FORMAT"), until=until,