id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 10458 next_month and previous_month in views.generic.date_based.archive_month return wrong dates alasdair fperetti "next_month and previous_month return different days than the documentation says. This isn't a huge problem, since it is probably the month that is required. The documentation says that django.views.generic.date_based.archive_month should return: ""next_month: A datetime.date object representing the first day of the next month ..."" However it returns a datetime.date object representing the second day of the next month. This is because on lines 146 and 148, a timedelta is added to last_month, which is already set to the required first date. Similarly, the documentation says: ""previous_month: A datetime.date object representing the first day of the previous month ..."" when it actually returns the last day of the previous month. This is my first django bug report, apologies if I've done it in the wrong way." closed Generic views 1.0 fixed next_month previous_month, pycamp2009 Accepted 1 0 0 0 0 0