Commit 35c5179b authored by Tom Kedem's avatar Tom Kedem

fixes a crash when specifying column filters using the field's instance rather than its name.

parent 65a2d5bc
...@@ -630,7 +630,7 @@ class ModelView(BaseModelView): ...@@ -630,7 +630,7 @@ class ModelView(BaseModelView):
# If filter related to relation column (represented by # If filter related to relation column (represented by
# relation_name.target_column) we collect here relation name # relation_name.target_column) we collect here relation name
joined_column_name = None joined_column_name = None
if '.' in name: if isinstance(name, string_types) and '.' in name:
joined_column_name = name.split('.')[0] joined_column_name = name.split('.')[0]
# Join not needed for hybrid properties # Join not needed for hybrid properties
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment