I have a view in which paginated items take only part of the page. Beside them there is a lot of content that takes some time to be generated in the view code. AFAIU that generation occurs even on AJAX page load unless I add something like this on the start:
if request.is_ajax():
data = {
'items': publications,
}
return render_to_response(
page_template,
data,
context_instance=RequestContext(request))
What is the best way to get a querystring key in this part in case of multiple paginations with AJAX?
I have a view in which paginated items take only part of the page. Beside them there is a lot of content that takes some time to be generated in the view code. AFAIU that generation occurs even on AJAX page load unless I add something like this on the start:
What is the best way to get a querystring key in this part in case of multiple paginations with AJAX?