forked from CGM_Public/pretix_original
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.html import format_html
|
||||||
from django.utils.safestring import mark_safe
|
from django.utils.safestring import mark_safe
|
||||||
from django.utils.translation import (
|
from django.utils.translation import get_language, pgettext_lazy
|
||||||
get_language, gettext_lazy as _, pgettext_lazy,
|
|
||||||
)
|
|
||||||
|
|
||||||
from pretix.helpers.templatetags.date_fast import date_fast as _date
|
from pretix.helpers.templatetags.date_fast import date_fast as _date
|
||||||
|
|
||||||
@@ -103,7 +101,7 @@ def daterange(df, dt, as_html=False):
|
|||||||
until=until,
|
until=until,
|
||||||
)
|
)
|
||||||
|
|
||||||
return _("{date_from}{until}{date_to}").format(
|
return "{date_from}{until}{date_to}".format(
|
||||||
date_from=_date(df, "DATE_FORMAT"),
|
date_from=_date(df, "DATE_FORMAT"),
|
||||||
date_to=_date(dt, "DATE_FORMAT"),
|
date_to=_date(dt, "DATE_FORMAT"),
|
||||||
until=until,
|
until=until,
|
||||||
|
|||||||
Reference in New Issue
Block a user