Skip to content

Commit bbd5ba1

Browse files
authored
Merge pull request piccolo-orm#96 from piccolo-orm/integer_array_fix
fix bug with `SerialisedBuiltin.__hash__` not returning a number
2 parents 0f26e80 + 22cb242 commit bbd5ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

piccolo/apps/migrations/auto/serialisation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SerialisedBuiltin:
2323
builtin: t.Any
2424

2525
def __hash__(self):
26-
return self.builtin.__name__
26+
return hash(self.builtin.__name__)
2727

2828
def __eq__(self, other):
2929
return self.__hash__() == other.__hash__()

0 commit comments

Comments
 (0)