Fix bug with toggle_url on integer facets

This commit is contained in:
Simon Willison 2018-05-15 07:19:09 -03:00 committed by Simon Willison
commit 514873c629

View file

@ -520,7 +520,7 @@ class TableView(RowTableShared):
selected = str(other_args.get(column)) == str(row["value"])
if selected:
toggle_path = path_with_removed_args(
request, {column: row["value"]}
request, {column: str(row["value"])}
)
else:
toggle_path = path_with_added_args(