Fixed #947 -- Corrected is_paginated variable in list_detail generic view. Thanks, nesh

git-svn-id: http://code.djangoproject.com/svn/django/trunk@1478 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-11-28 14:26:04 +00:00
parent 133839b033
commit 496e777da9
1 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ def object_list(request, app_label, module_name, paginate_by=None, allow_empty=F
page = int(page)
c = Context(request, {
'object_list': object_list,
'is_paginated': True,
'is_paginated': paginator.pages > 1,
'results_per_page': paginate_by,
'has_next': paginator.has_next_page(page),
'has_previous': paginator.has_previous_page(page),