So, I typically do this:

validators = name_semantic.validators
name_semantic.validators.object_id == validators.object_id