def formfield_for_foreignkey(self, db_field, request, **kwargs):
        if settings.OPPS_MULTISITE_ADMIN and not request.user.is_superuser:
            obj = Permission.get_by_user(request.user)

            if ['site'] in db_field.name:
                kwargs['queryset'] = Site.objects.filter(
                    id__in=obj['all_sites_id']
                )

            if db_field.name in ['channel']:
                if FALLBACK_ON_CHANNEL:
                    obj['sites_id'].add(self._get_site_master().pk)

                kwargs['queryset'] = Channel.objects.filter(
                    Q(id__in=obj['channels_id']) |
                    Q(site_id__in=obj['sites_id'])
                )

        return super(AdminViewPermission, self).formfield_for_foreignkey(
            db_field, request, **kwargs)
dataset/ETHPy150Open opps/opps/opps/core/permissions/admin.py/AdminViewPermission.formfield_for_foreignkey/swapped operands of `in`