Karaage-Cluster/karaage — Issue #40: Searching on page 2 doesn't work
Author: sorrison
Created: 2012-02-15 22:47:15+00:00
State: open

If you are on, say, page 2 of the userlist, and you search for a username, you get an error:

Request Method:	POST
Request URL:	https://help.vlsci.unimelb.edu.au/accounts/users/?page=2
Exception Type:	EmptyPage
Exception Value:

That page contains no results

Exception Location:	/usr/lib/pymodules/python2.5/django/core/paginator.py in validate_number, line 32
Python Executable:	/usr/bin/python
Python Version:	2.5.5
Python Path:	['/usr/lib/python2.5/site-packages/PIL-1.1.7-py2.5-linux-i686.egg', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/local/lib/python2.5/site-packages/pbs', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/pbs', '/usr/lib/pymodules/python2.5', '/usr/lib/pymodules/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode']
Server time:	Wed, 19 May 2010 14:56:44 +1000

File "/usr/lib/pymodules/python2.5/django/core/handlers/base.py" in get_response
92. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/pymodules/python2.5/karaage/people/views/admin.py" in user_list
114. page = p.page(page_no)
File "/usr/lib/pymodules/python2.5/django/core/paginator.py" in page
37. number = self.validate_number(number)
File "/usr/lib/pymodules/python2.5/django/core/paginator.py" in validate_number
32. raise EmptyPage('That page contains no results')

Exception Type: EmptyPage at /users/
Exception Value: That page contains no results