summaryrefslogtreecommitdiff
path: root/django/views/generic/dates.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/views/generic/dates.py')
-rw-r--r--django/views/generic/dates.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/views/generic/dates.py b/django/views/generic/dates.py
index d403db8207..52b3b39062 100644
--- a/django/views/generic/dates.py
+++ b/django/views/generic/dates.py
@@ -658,11 +658,11 @@ class BaseDateDetailView(YearMixin, MonthMixin, DayMixin, DateMixin, BaseDetailV
if not self.get_allow_future() and date > datetime.date.today():
raise Http404(_(
"Future %(verbose_name_plural)s not available because "
- "%(class_name)s.allow_future is False.") % {
+ "%(class_name)s.allow_future is False."
+ ) % {
'verbose_name_plural': qs.model._meta.verbose_name_plural,
'class_name': self.__class__.__name__,
- },
- )
+ })
# Filter down a queryset from self.queryset using the date from the
# URL. This'll get passed as the queryset to DetailView.get_object,