Skip to content

Commit

Permalink
Put checkbox filters in a list and radio inputs as standalone values
Browse files Browse the repository at this point in the history
  • Loading branch information
bhch committed Jan 8, 2022
1 parent ce79d01 commit daabd72
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tornadmin/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,7 @@ async def get(self, app_slug, model_slug):
filters_map[filter_['name']].append(filter_['options'][index][1])
else:
if filter_['name'] not in filters_map:
filters_map[filter_['name']] = []
filters_map[filter_['name']].append(filter_['options'][index][1])
filters_map[filter_['name']] = filter_['options'][index][1]

list_items, page = await admin.get_list(self, page_num=page_num, q=q, o=o, filters=filters_map)

Expand Down

0 comments on commit daabd72

Please sign in to comment.