Ticket #4619: 4619.patch
File 4619.patch, 935 bytes (added by , 17 years ago) |
---|
-
django/views/generic/date_based.py
8 8 def archive_index(request, queryset, date_field, num_latest=15, 9 9 template_name=None, template_loader=loader, 10 10 extra_context=None, allow_empty=False, context_processors=None, 11 mimetype=None, allow_future=False):11 template_object_name='object', mimetype=None, allow_future=False): 12 12 """ 13 13 Generic top-level archive of date-based objects. 14 14 … … 37 37 t = template_loader.get_template(template_name) 38 38 c = RequestContext(request, { 39 39 'date_list' : date_list, 40 ' latest': latest,40 '%s_list' % template_object_name : latest, 41 41 }, context_processors) 42 42 for key, value in extra_context.items(): 43 43 if callable(value):