Ticket #24263: django-1.7.3.patch

File django-1.7.3.patch, 799 bytes (added by EugeneM, 10 years ago)

Patch

  • views/generic/dates.py

    diff -rupN django.orig/views/generic/dates.py django/views/generic/dates.py
    old new class BaseDateDetailView(YearMixin, Mont  
    644644                                 day, self.get_day_format())
    645645
    646646        # Use a custom queryset if provided
    647         qs = queryset or self.get_queryset()
     647        qs = self.get_queryset() if queryset is None else queryset
    648648
    649649        if not self.get_allow_future() and date > datetime.date.today():
    650650            raise Http404(_("Future %(verbose_name_plural)s not available because %(class_name)s.allow_future is False.") % {
Back to Top