def METHOD_NAME(self, instance):
    invalid = self.get_invalid(instance)
    if invalid:
        raise PublishValidationError(
            ("Primitives found with inconsistent primitive "
             "to detail attributes. See log."),
            title=self.label
        )