#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 | Keywords:
Stage: Unreviewed | Has_patch: 1
---------------------------------------------+------------------------------
Ticket #2368 suggests that in {{{django.views.generic.date_based}}}
generic views, {{{previous_month}}} and {{{previous_day}}} should reflect
if there is objects in those months.
When trying to port the patch attached to #2368 to the state after the
changes introduced in fixing #2433 with changeset [3457], I realised it
was not entirely sensible.
The patch attached to this Ticket implements new variables in template
context for {{{django.views.generic.date_based.archive_month}}} and
{{{django.views.generic.date_based.archive_day}}},
{{{previous_object_date}}} and {{{next_object_date}}}, which gives the
possibility to access the date of the first accessible object outside the
interval in either direction.
--
Ticket URL: <http://code.djangoproject.com/ticket/3585>
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
-~----------~----~----~----~------~----~------~--~---