Fix: WEEK_FORMAT fallback in calender week-views (#2391)

* switch to context-week_format for fallback-handling

* set week_format fallback to en instead of de

* add french WEEK_FORMAT and WEEK_DAY_FORMAT
This commit is contained in:
Richard Schreiber
2021-12-21 10:10:13 +01:00
committed by GitHub
parent 7090e0bae2
commit 0bf7bba6ba
5 changed files with 49 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ from pretix.base.models import (
from pretix.base.services.quotas import QuotaAvailability
from pretix.helpers.compat import date_fromisocalendar
from pretix.helpers.daterange import daterange
from pretix.helpers.formats.de.formats import WEEK_FORMAT
from pretix.helpers.formats.en.formats import WEEK_FORMAT
from pretix.multidomain.urlreverse import eventreverse
from pretix.presale.ical import get_ical
from pretix.presale.views import OrganizerViewMixin