Skip to content

Commit fe92118

Browse files
committed
Reverted change in kwargs['secondary']
1 parent c51725a commit fe92118

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqlacodegen/codegen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ class ManyToManyRelationship(Relationship):
490490
def __init__(self, source_cls, target_cls, assocation_table, inflect_engine):
491491
super(ManyToManyRelationship, self).__init__(source_cls, target_cls)
492492

493-
self.kwargs['secondary'] = repr(assocation_table.schema) + '.' + repr(assocation_table.name)
493+
self.kwargs['secondary'] = repr(assocation_table.schema + '.' + assocation_table.name)
494494
constraints = [c for c in assocation_table.constraints if isinstance(c, ForeignKeyConstraint)]
495495
constraints.sort(key=_get_constraint_sort_key)
496496
colname = constraints[1].columns[0]

0 commit comments

Comments
 (0)