Remove unnecessary translation for daterange (Z#23205453) (#5410)

* Remove unnecessary translation for daterange

* fix flake8

* fix isort
This commit is contained in:
Richard Schreiber
2025-09-02 09:22:21 +02:00
committed by GitHub
parent d23735b1a6
commit 24ac588119

View File

@@ -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,