docs: def profile_list(request, page=1, template_name='userena/profile_list.html',
                   paginate_by=50, extra_context=None, **kwargs): # pragma: no cover
      """
      Returns a list of all profiles that are public.
  
      It's possible to disable this by changing ``USERENA_DISABLE_PROFILE_LIST``
      to ``True`` in your settings.
  
      :param page:
          Integer of the active page used for pagination. Defaults to the first
          page.
  
      :param template_name:
          String defining the name of the template that is used to render the
          list of all users. Defaults to ``userena/list.html``.
  
      :param paginate_by:
          Integer defining the amount of displayed profiles per page. Defaults to
          50 profiles per page.
  
      :param extra_context:
          Dictionary of variables that are passed on to the ``template_name``
          template.
  
      **Context**
  
      ``profile_list``
          A list of profiles.
  
      ``is_paginated``
          A boolean representing whether the results are paginated.
  
      If the result is paginated. It will also contain the following variables.
  
      ``paginator``
          An instance of ``django.core.paginator.Paginator``.
  
      ``page_obj``
          An instance of ``django.core.paginator.Page``.
  
      """
      warnings.warn("views.profile_list is deprecated. Use ProfileListView instead", DeprecationWarning, stacklevel=2)
  
      try:
          page = int(request.GET.get('page', None))
      except (TypeError, ValueError):
          page = page
  
      if userena_settings.USERENA_DISABLE_PROFILE_LIST \
         and not request.user.is_staff:
          raise Http404
  
      profile_model = get_profile_model()
      queryset = profile_model.objects.get_visible_profiles(request.user)
  
      if not extra_context: extra_context = dict()
      return ProfileListView.as_view(queryset=queryset,
                                     paginate_by=paginate_by,
                                     page=page,
                                     template_name=template_name,
                                     extra_context=extra_context,
                                     **kwargs)(request)