9👍
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.
1👍
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’.
- [Django]-How to add Indian Standard Time (IST) in Django?
- [Django]-Project design / FS layout for large django projects
- [Django]-Django ModelChoiceField: filtering query set and setting default value as an object
Source:stackexchange.com