Skip to content

Commit

Permalink
Revert: Better python hashing of OOIs
Browse files Browse the repository at this point in the history
  • Loading branch information
originalsouth committed Dec 30, 2024
1 parent 1b8a820 commit 57e8344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octopoes/octopoes/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def _serialize_value(self, value: Any, required: bool) -> SerializedOOIValue:
return str(value)

def __hash__(self):
return hash(self.model_dump_json())
return hash(self.primary_key)


OOIClassType = TypeVar("OOIClassType")
Expand Down

0 comments on commit 57e8344

Please sign in to comment.