Skip to content

Commit c383f84

Browse files
committed
simplify equality check - only name required
1 parent 0747ef8 commit c383f84

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

piccolo/apps/migrations/auto/diffable_table.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ def __hash__(self) -> int:
5151

5252
def __eq__(self, value) -> bool:
5353
if isinstance(value, ColumnComparison):
54-
return (
55-
serialise_params(self.column._meta.params).params
56-
== serialise_params(value.column._meta.params).params
57-
) and (self.column._meta.name == value.column._meta.name)
54+
return self.column._meta.name == value.column._meta.name
5855
return False
5956

6057

0 commit comments

Comments
 (0)