Skip to content

Commit 0acbb91

Browse files
committed
Add support for composite columns
1 parent 02045c4 commit 0acbb91

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sqlalchemy_utils/listeners.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ def coercion_listener(mapper, class_):
99
capable type.
1010
"""
1111
for prop in mapper.iterate_properties:
12+
if not prop.columns:
13+
continue
14+
1215
try:
1316
listener = prop.columns[0].type.coercion_listener
1417
except AttributeError:

0 commit comments

Comments
 (0)