#18245: Error in documentation of date based generic views
-----------------------------------------+------------------------
               Reporter:  aaugustin      |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Documentation  |        Version:  master
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 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.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18245>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to