
django-pagination - issue #6
KeyError if the context does not include the request object
What steps will reproduce the problem? 1. Follow steps in the README 2. Render a paginated list on a page which doesn't include the request object in the context (which is the default case on the Django trunk) 3. Receive a KeyError on line 73 of pagination_tags.py
What version of the product are you using? On what operating system? I'm on OS X using the Django trunk and the django-pagination trunk. I can resolve the problem by including the request object in the context I'm passing the renderer from my view, like so:
render_to_response('news/index.html', {'request': request, 'stories': recent_stories})
Please provide any additional information below. Thanks for providing this code! Even with the hiccups it's great!
Comment #1
Posted on Aug 30, 2008 by Happy KangarooFixed in r30. Thanks for the report!
Comment #2
Posted on Aug 30, 2008 by Happy Kangaroo(No comment was entered for this change.)
Status: Fixed
Labels:
Type-Defect
Priority-Medium