<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_queryset(self, request):
 """Limit to Tenants that this user can access."""

        qs = super(TenantAdmin, self).get_queryset(request)
        if not request.user.is_superuser:
            tenants_by_group_manager_role = qs.filter(
                group__tenantrole__user=request.user,
                group__tenantrole__role=TenantRole.ROLE_GROUP_MANAGER
            )
            tenants_by_tenant_manager_role = qs.filter(
                tenantrole__user=request.user,
                tenantrole__role=TenantRole.ROLE_TENANT_MANAGER
            )
            return tenants_by_group_manager_role | tenants_by_tenant_manager_role
        return qs