drf-queryset

return response number of count in django rest framework

return response number of count in django rest framework Question: I wanted to return the response number of the count of chiled_comments as in blew table. like for id no. 3 have 2(count) "parent_post_comment_id". and same as id no. 1 have only 1(count) "parent_post_comment_id". id is_post_comment parent_post_comment_id created_on description language_post_id 1 1 2022-08-30 09:06:07.078366 Comment …

Total answers: 1