We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 706dd89 commit aa6f8ccCopy full SHA for aa6f8cc
sqlacodegen/codegen.py
@@ -126,11 +126,11 @@ def _render_column_type(coltype):
126
else:
127
args.append(repr(value))
128
129
+ text = _flask_prepend + coltype.__class__.__name__
130
+
131
# In case of ENUM from sqlalchemy.dialects, the flask used db.Enum
- if coltype.__class__.__name__ == "ENUM":
- text = _flask_prepend + "Enum"
132
- else:
133
- text = _flask_prepend + coltype.__class__.__name__
+ if text == "db.ENUM":
+ text = "db.Enum"
134
135
if args:
136
text += '({0})'.format(', '.join(args))
0 commit comments