Ticket #10688: archive_month.diff

File archive_month.diff, 683 bytes (added by anonymous, 16 years ago)

patch

  • django/views/generic/date_based.py

     
    143143
    144144    # Calculate the next month, if applicable.
    145145    if allow_future:
    146         next_month = last_day + datetime.timedelta(days=1)
    147     elif last_day < datetime.date.today():
    148         next_month = last_day + datetime.timedelta(days=1)
     146        next_month = last_day #+ datetime.timedelta(days=1)
     147    elif last_day <= datetime.date.today():
     148        next_month = last_day #+ datetime.timedelta(days=1)
    149149    else:
    150150        next_month = None
    151151
Back to Top