🐛 fix validation

This commit is contained in:
Ondrej Samohel 2024-12-10 23:05:35 +01:00
parent b51273af8e
commit 83dfd765e2
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -58,6 +58,6 @@ class Persistent(TraitBase):
representation (Representation): Representation model.
"""
if representation.contains_trait(Persistent):
if representation.contains_trait(Transient):
msg = "Representation is marked as both Persistent and Transient."
raise TraitValidationError(self.name, msg)