You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a temporary fix, I commented out line 59 in widgets.py (noted above), instead of changing "ImageColumn" to "String(150)" (noted above) … this allows me to use the image upload feature.
UPDATE 2
Fix: flask_appbuilder/models/filters.py line 163: if datamodel.is_text(col) or datamodel.is_string(col) or datamodel.is_image(col):
Added datamodel.is_image(col) to accommodate the extended datatype "ImageColumn"
The text was updated successfully, but these errors were encountered:
Yes, it's a bug. Your update does the trick, yet ImageColumn and FileColumn were being included has a possible filter, and that should not happen, and it's not very helpful since their name is UUID_<file_name>.
I've corrected the bug, and others, has well has some new features.
Thank you for reporting this!
Please update to 0.6.2. Take a close look at the 0.6.N version changes
When I run $ python run.py in quickimages example, the terminal returns warning
"Filter type not supported for column: photo"
The app still runs, but error in browser on url http://0.0.0.0:8080/persongeneralview/list/
I narrowed the error down to line 28 in models.py
photo = Column(ImageColumn, nullable=False)
I changed "ImageColumn" to "String(150)" … it eliminates the error, but the ImageColumn functionality is not available, of course.
The last call in http://0.0.0.0:8080/persongeneralview/list/ shows error in widgets.py line 59
search_filters[col] = [unicode(flt.name) for flt in dict_filters[col]]
UPDATE
As a temporary fix, I commented out line 59 in widgets.py (noted above), instead of changing "ImageColumn" to "String(150)" (noted above) … this allows me to use the image upload feature.
UPDATE 2
Fix: flask_appbuilder/models/filters.py
line 163: if datamodel.is_text(col) or datamodel.is_string(col) or datamodel.is_image(col):
Added
datamodel.is_image(col)
to accommodate the extended datatype "ImageColumn"The text was updated successfully, but these errors were encountered: