pirave / django-pagination

Automatically exported from code.google.com/p/django-pagination
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

KeyError if the context does not include the request object #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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!

Original issue reported on code.google.com by trevorfs...@gmail.com on 17 Jul 2008 at 4:28

GoogleCodeExporter commented 8 years ago
Fixed in r30.  Thanks for the report!

Original comment by flo...@gmail.com on 30 Aug 2008 at 6:33

GoogleCodeExporter commented 8 years ago

Original comment by flo...@gmail.com on 30 Aug 2008 at 6:36