parameters: (request, object_id, app_label, model_label)
return_statement: return HttpResponse(json.dumps(ctx))
docstring: Get number of comments for selected target
docstring_summary: Get number of comments for selected target
docstring_tokens: Get number of comments for selected target
function: def get_comment_count(request, object_id, app_label, model_label):
      """
      Get number of comments for selected target
      """
      comments = get_related_comments(object_id, app_label, model_label)
  
      ctx = {
          'success': True,
          'message': len(comments),
      }
  
      return HttpResponse(json.dumps(ctx));
function_tokens: def get_comment_count ( request , object_id , app_label , model_label ) : comments = get_related_comments ( object_id , app_label , model_label ) ctx = { 'success' : True , 'message' : len ( comments ) , } return HttpResponse ( json . dumps ( ctx ) )