old_contents: from django.views.generic import ListView
  from django.http import HttpResponseRedirect
  
  from django_cradmin.registry import cradmin_instance_registry
  
  
  class RoleSelectView(ListView):
      # paginate_by = 30
      template_name = 'django_cradmin/roleselect.django.html'
      context_object_name = 'roles'
  
      def get_queryset(self):
          cradmin_instance = cradmin_instance_registry.get_current_instance(self.request)
          return cradmin_instance.get_rolequeryset()
  
      def get(self, *args, **kwargs):
          if self.get_queryset().count() == 1:
              cradmin_instance = cradmin_instance_registry.get_current_instance(self.request)
              only_role = self.get_queryset().first()
              return HttpResponseRedirect(cradmin_instance.rolefrontpage_url(only_role))
          return super(RoleSelectView, self).get(*args, **kwargs)
new_contents: from django.views.generic import ListView
  from django.http import HttpResponseRedirect
  
  from django_cradmin.registry import cradmin_instance_registry
  
  
  class RoleSelectView(ListView):
      # paginate_by = 30
      template_name = 'django_cradmin/roleselect.django.html'
      context_object_name = 'roles'
  
      def get_queryset(self):
          cradmin_instance = cradmin_instance_registry.get_current_instance(self.request)
          return cradmin_instance.get_rolequeryset()
  
      def get(self, *args, **kwargs):
          if self.get_queryset().count() == 1:
              cradmin_instance = cradmin_instance_registry.get_current_instance(self.request)
              only_role = self.get_queryset().first()
              return HttpResponseRedirect(cradmin_instance.rolefrontpage_url(
                  cradmin_instance.get_roleid(only_role))
          return super(RoleSelectView, self).get(*args, **kwargs)
subject: Send roleid, not role object to rolefrontpage_url.