def METHOD_NAME(self, db_field, request, **kwargs):
    if (db_field.name) == "access_groups":
        kwargs["queryset"] = AccessGroup.objects.filter(
            sites=Site.objects.get_current()
        )
    return super().formfield_for_foreignkey(db_field, request, **kwargs)