def METHOD_NAME(self, *args, **kwargs):
    if not self.identity.environment.project.organisation.persist_trait_data:
        # this is a final line of defense to ensure that traits are never saved
        # for organisations which have the flag set to not persist trait data
        raise TraitPersistenceError(
            "Not possible to persist traits for this organisation."
        )
    return super(Trait, self).METHOD_NAME(*args, **kwargs)