Skip to content

Commit 8889c62

Browse files
author
matmoncon
committed
fix: use enum values for string representation of RelationshipProperty
1 parent 021b5d9 commit 8889c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyneo4j_ogm/fields/relationship_property.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ def __ne__(self, other: Any) -> bool:
287287
def __repr__(self) -> str:
288288
return (
289289
f"{self.__class__.__name__}(target_model_name={self._target_model_name}, "
290-
f"relationship_model={self._relationship_model_name}, direction={self._direction}, "
291-
f"cardinality={self._cardinality}, allow_multiple={self._allow_multiple})"
290+
f"relationship_model={self._relationship_model_name}, direction={self._direction.value}, "
291+
f"cardinality={self._cardinality.value}, allow_multiple={self._allow_multiple})"
292292
)
293293

294294
def __str__(self) -> str:

0 commit comments

Comments
 (0)