Merge pull request #2410 from AlanCoding/filterama

Show filterable: False if not filterable
This commit is contained in:
Alan Rominger
2018-07-03 17:32:11 -04:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -67,6 +67,8 @@ class Metadata(metadata.SimpleMetadata):
if field.field_name == model_field.name:
field_info['filterable'] = True
break
else:
field_info['filterable'] = False
# Indicate if a field has a default value.
# FIXME: Still isn't showing all default values?