[patch] archive_month generic view leaves out last day of month
|Reported by:||ubernostrum||Owned by:||jacob|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Items published on the last day of a month won't be listed by the archive_month generic view (for example, at the moment the latest entry in the Django weblog is dated Nov. 30, and doesn't show up in the November archive of the Django blog); the view calculates the first and last day of the month, and uses those in a range lookup, but apparently this isn't inclusive (which is contrary to what the DB API docs claim). The view needs to use the first day of the next month as its last day instead.
Change History (6)
comment:2 Changed 11 years ago by Esaj <jason at jasondavies.com>
- Summary changed from archive_month generic view leaves out last day of month to [patch] archive_month generic view leaves out last day of month