tags:

views:

30

answers:

1

I have something like this:

myobj = paginator_method(request, myresult)
return render_to_response(' ', myobj, context)

And when I am going to page 2 and onward its giving MultiValueDictKeyError:

Key 'name' not found in <QueryDict: {u'page': [u'2']}

A: 
return render_to_response(' ', dict(pagination=myobj, data=myresult), context)

.

{{ pagination.somevar }}
{{ data.somevar }}
Tomasz Wysocki