Commit b7ace5d2 authored by Paul Brown's avatar Paul Brown Committed by GitHub

Merge pull request #1421 from vToMy/bugfix/filter_by_type

Fixes specifying column filter by instance
parents 65a2d5bc 35c5179b
...@@ -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