#992 closed defect (fixed)
[patch] archive_month generic view leaves out last day of month
Reported by: | James Bennett | Owned by: | Jacob |
---|---|---|---|
Component: | Generic views | Version: | dev |
Severity: | major | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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.
Attachments (3)
Change History (6)
by , 19 years ago
Attachment: | date_based.diff added |
---|
by , 19 years ago
Attachment: | date_based.2.diff added |
---|
New patch that doesn't hate the month of November
comment:1 by , 19 years ago
Actually... that's two boneheaded blunders in as many attempts. I'm going to grab a few hours of sleep, and then do this right.
comment:2 by , 19 years ago
Summary: | archive_month generic view leaves out last day of month → [patch] archive_month generic view leaves out last day of month |
---|
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch to use first day of next month instead of last day of month