Skip to content

Commit e01307e

Browse files
authored
Fix getting column python type (#757)
1 parent 805dc06 commit e01307e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sqladmin/helpers.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,13 @@ def get_direction(prop: MODEL_PROPERTY) -> str:
241241

242242
def get_column_python_type(column: Column) -> type:
243243
try:
244-
if hasattr(column.type, "impl"):
245-
return column.type.impl.python_type
246244
return column.type.python_type
247245
except NotImplementedError:
246+
if hasattr(column.type, "impl"):
247+
try:
248+
return column.type.impl.python_type
249+
except NotImplementedError:
250+
...
248251
return str
249252

250253

0 commit comments

Comments
 (0)