Facet toggling now works for integer columns, refs #255

This commit is contained in:
Simon Willison 2018-05-14 18:33:24 -03:00 committed by Simon Willison
commit f36c9d4b4c
3 changed files with 63 additions and 18 deletions

View file

@ -508,7 +508,7 @@ class TableView(RowTableShared):
)
facet_results[column] = []
for row in facet_rows:
selected = other_args.get(column) == row["value"]
selected = str(other_args.get(column)) == str(row["value"])
if selected:
toggle_path = path_with_removed_args(
request, {column: row["value"]}