Fix for incorrect hidden for fields for _columns, refs #1527

This commit is contained in:
Simon Willison 2021-11-29 19:04:20 -08:00
commit 06762776f7
2 changed files with 18 additions and 1 deletions

View file

@ -889,7 +889,11 @@ class TableView(RowTableShared):
form_hidden_args = []
for key in request.args:
if key.startswith("_") and key not in ("_sort", "_search", "_next"):
if (
key.startswith("_")
and key not in ("_sort", "_search", "_next")
and not key.endswith("__exact")
):
for value in request.args.getlist(key):
form_hidden_args.append((key, value))