Skip to content

Commit fe87ac0

Browse files
author
Mehdi
committed
fix
1 parent b585c04 commit fe87ac0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlmypy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def has_foreign_keys(local_model: TypeInfo, remote_model: TypeInfo) -> bool:
353353
remote_metadata = remote_model.metadata.get("sqlalchemy", {})
354354

355355
for fk in local_metadata.get("foreign_keys", {}).values():
356-
if 'model_fullname' in fk and remote_model.fullname == fk['model_fullname']:
356+
if 'model_fullname' in fk and remote_model.fullname() == fk['model_fullname']:
357357
return True
358358
if 'table_name' in fk:
359359
if 'table_name' not in remote_metadata:

0 commit comments

Comments
 (0)