Error in documentation of date based generic views
|Reported by:||Aymeric Augustin||Owned by:||Aymeric Augustin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.