#3585: django.views.generic.date_based.archive_{month,day}: date of first object
outside interval available in template context
------------------------------------------------+---------------------------
Reporter: Per Jonsson <[EMAIL PROTECTED]> | Owner: jacob
Status: new | Component:
Generic views
Version: SVN | Resolution:
Keywords: | Stage: Design
decision needed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
------------------------------------------------+---------------------------
Comment (by Per Jonsson <[EMAIL PROTECTED]>):
previous_month/day is currently just the date of the month/day before the
one currently shown, and doesn't tell if there are any objects there.
On use-case is that you are using {{{allow_empty=True}}}, and want to
reference the month/day on either side of the currently displayed (to
create links to empty pages, perhaps so that the user can bookmark them),
but also want to link to the month/day with the closest accessible object
outside the interval that is currently being shown.
It is possible that the information in previous_month/day should be
changed to reflect the information my patch puts in previous_object_date,
but that changes current behaviour.
--
Ticket URL: <http://code.djangoproject.com/ticket/3585#comment:3>
Django Code <http://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
-~----------~----~----~----~------~----~------~--~---