Ticket #6749: week_view.diff

File week_view.diff, 621 bytes (added by garrison, 7 years ago)
  • django/views/generic/date_based.py

     
    187187
    188188    # Calculate first and last day of week, for use in a date-range lookup.
    189189    first_day = date
    190     last_day = date + datetime.timedelta(days=7)
     190    last_day = date + datetime.timedelta(days=6)
    191191    lookup_kwargs = {'%s__range' % date_field: (first_day, last_day)}
    192192
    193193    # Only bother to check current date if the week isn't in the past and future objects aren't requested.
Back to Top