Ticket #4619: 4619.patch

File 4619.patch, 935 bytes (added by Collin Grady <cgrady@…>, 8 years ago)
  • django/views/generic/date_based.py

     
    88def archive_index(request, queryset, date_field, num_latest=15,
    99        template_name=None, template_loader=loader,
    1010        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):
    1212    """
    1313    Generic top-level archive of date-based objects.
    1414
     
    3737    t = template_loader.get_template(template_name)
    3838    c = RequestContext(request, {
    3939        'date_list' : date_list,
    40         'latest' : latest,
     40        '%s_list' % template_object_name : latest,
    4141    }, context_processors)
    4242    for key, value in extra_context.items():
    4343        if callable(value):
Back to Top