Opened 13 years ago
Closed 13 years ago
#18245 closed Bug (fixed)
Error in documentation of date based generic views
Description ¶
The documentation says:
next_month: A datetime.date object representing the first day of the next month. If the next month is in the future, this will be None.
previous_month: A datetime.date object representing the first day of the previous month. Unlike next_month, this will never be None.
Actually, both values can also be None if allow_empty is False and if there's no object in the future / past.
This problem exists for both month and day views.
Change History (9)
comment:1 by , 13 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 13 years ago
Owner: | changed from | to
---|
by , 13 years ago
Attachment: | ticket18245.diff added |
---|
comment:3 by , 13 years ago
Has patch: | set |
---|
comment:4 by , 13 years ago
Owner: | changed from | to
---|
comment:6 by , 13 years ago
I see you've written a patch. I'm just assigning the ticket to myself in order to review it and commit it!
comment:8 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Both descriptions updated.