Multiple pagination (ajax) not working for django-el-pagination Multiple pagination (ajax) not working for django-el-pagination ajax ajax

Multiple pagination (ajax) not working for django-el-pagination


What is the output of below line?

print('Queryset:', user_queryset)

I think you have problem in below line

user_queryset = request.GET.get('user_queryset')

this is not returning correct get parameter value for match with condition of post and comment part.


Could you check in your javascript near :

   user_queryset = 'user_comments';

Try to change it to :

   var user_queryset = 'user_comments';

I assume, if you go directly to comments, that the variable user_queryset will be undefined and it doesn't get passed as 'user_comments'.