code: def group_dashboard(request, group_slug):
      
      groups = get_user_groups(request.user)
      group = get_object_or_404(groups, slug=group_slug)
      tenants = get_user_tenants(request.user, group)
      can_edit_group = request.user.has_perm('multitenancy.change_tenantgroup', group)
      count = len(tenants)
      if count == 1:
          # Redirect to the detail page for this tenant
          return redirect(tenants[0])
      context = {
          'group': group,
          'tenants': tenants,
          'count': count,
          'can_edit_group': can_edit_group,
      }
      return render(request, 'multitenancy/group-detail.html', context)
docs: Dashboard for managing a TenantGroup.