original_docstring:  view for render `index` page 
docstring: view for render `index` page
docstring_tokens: view for render ` index ` page
code: def index(request):
      """ view for render `index` page """
      member_data = services.get_user_chats(request.user)
      if request.method == 'GET':
          queryset = services.chat_search_get_method(request=request)
          if request.is_ajax():
              return JsonResponse({'chats': queryset}, safe=False)
      return render(request, 'chat/index.html', {'members_data': member_data})
code_tokens: def index ( request ) : member_data = services . get_user_chats ( request . user ) if request . method == 'GET' : queryset = services . chat_search_get_method ( request = request ) if request . is_ajax ( ) : return JsonResponse ( { 'chats' : queryset } , safe = False ) return render ( request , 'chat/index.html' , { 'members_data' : member_data } )
short_docstring: view for render `index` page
short_docstring_tokens: view for render ` index ` page
comment: """ view for render `index` page """