Ticket #6749: week_view.diff
File week_view.diff, 621 bytes (added by , 17 years ago) |
---|
-
django/views/generic/date_based.py
187 187 188 188 # Calculate first and last day of week, for use in a date-range lookup. 189 189 first_day = date 190 last_day = date + datetime.timedelta(days= 7)190 last_day = date + datetime.timedelta(days=6) 191 191 lookup_kwargs = {'%s__range' % date_field: (first_day, last_day)} 192 192 193 193 # Only bother to check current date if the week isn't in the past and future objects aren't requested.