mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Remove unnecessary translation for daterange (Z#23205453) (#5410)
* Remove unnecessary translation for daterange * fix flake8 * fix isort
This commit is contained in:
committed by
GitHub
parent
d23735b1a6
commit
24ac588119
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user