Opened 13 years ago

Closed 12 years ago

#18245 closed Bug (fixed)

Error in documentation of date based generic views

Reported by: Aymeric Augustin Owned by: Aymeric Augustin
Component: Documentation Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Attachments (1)

ticket18245.diff (945 bytes ) - added by mateusgondim 12 years ago.
Both descriptions updated.

Download all attachments as: .zip

Change History (9)

comment:1 by Jannis Leidel, 13 years ago

Triage Stage: UnreviewedAccepted

comment:2 by mateusgondim, 12 years ago

Owner: changed from nobody to mateusgondim

by mateusgondim, 12 years ago

Attachment: ticket18245.diff added

Both descriptions updated.

comment:3 by mateusgondim, 12 years ago

Has patch: set

comment:4 by Aymeric Augustin, 12 years ago

Owner: changed from mateusgondim to Aymeric Augustin

comment:5 by mateusgondim, 12 years ago

Hi, sorry, did i do something wrong?

comment:6 by Aymeric Augustin, 12 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:7 by mateusgondim, 12 years ago

Oh ok, thanks!

comment:8 by Aymeric Augustin <aymeric.augustin@…>, 12 years ago

Resolution: fixed
Status: newclosed

In [7207327dd313522954da167f9a41396b97354c78]:

Updated docs for dates generic views.

Fixes #18245. Refs #3542.

Note: See TracTickets for help on using tickets.
Back to Top