mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #14312 -- Raising an `IncorrectLookupParameters` if the page number given to an admin change list exceeds the number of the last page. Thanks, mk.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14889 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -117,7 +117,7 @@ class ChangeList(object):
|
||||
try:
|
||||
result_list = paginator.page(self.page_num+1).object_list
|
||||
except InvalidPage:
|
||||
result_list = ()
|
||||
raise IncorrectLookupParameters
|
||||
|
||||
self.result_count = result_count
|
||||
self.full_result_count = full_result_count
|
||||
|
||||
Reference in New Issue
Block a user