Skip to content

Commit 5896004

Browse files
committed
fix type of keys to be removed
1 parent 8dca285 commit 5896004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmodel/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def _calculate_keys(
509509
keys -= update.keys()
510510

511511
if exclude:
512-
keys -= {k for k, v in exclude.items() if ValueItems.is_true(v)}
512+
keys -= {str(k) for k, v in exclude.items() if ValueItems.is_true(v)}
513513

514514
return keys
515515

0 commit comments

Comments
 (0)