diff options
| author | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-09-15 22:25:52 +0000 |
|---|---|---|
| committer | Joseph Kocherhans <joseph@jkocherhans.com> | 2007-09-15 22:25:52 +0000 |
| commit | 019e3c61e4390b0e5ad981256d6426e24083626a (patch) | |
| tree | 5efefabcad63dbe68f0c2b53c4ff5100667fc24d /django/views/generic/date_based.py | |
| parent | b2669113821eeb8b3cd654bbf5ab33053894b923 (diff) | |
newforms-admin: Merged to [6332].
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@6342 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/views/generic/date_based.py')
| -rw-r--r-- | django/views/generic/date_based.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/views/generic/date_based.py b/django/views/generic/date_based.py index 1a8c4c611a..e6a75e63aa 100644 --- a/django/views/generic/date_based.py +++ b/django/views/generic/date_based.py @@ -10,7 +10,7 @@ from django.http import Http404, HttpResponse def archive_index(request, queryset, date_field, num_latest=15, template_name=None, template_loader=loader, extra_context=None, allow_empty=False, context_processors=None, - mimetype=None, allow_future=False): + mimetype=None, allow_future=False, template_object_name='latest'): """ Generic top-level archive of date-based objects. @@ -39,7 +39,7 @@ def archive_index(request, queryset, date_field, num_latest=15, t = template_loader.get_template(template_name) c = RequestContext(request, { 'date_list' : date_list, - 'latest' : latest, + template_object_name : latest, }, context_processors) for key, value in extra_context.items(): if callable(value): |
