1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #12299: Fix object list widget support for filtering by multiple values

This commit is contained in:
jeremystretch
2023-04-21 11:54:28 -04:00
parent 8cf0a79dee
commit 2fe5592c3c
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ Two new webhook trigger events have been introduced: `job_start` and `job_end`.
* [#12149](https://github.com/netbox-community/netbox/issues/12149) - Fix OpenAPI schema warnings relating to enum collisions * [#12149](https://github.com/netbox-community/netbox/issues/12149) - Fix OpenAPI schema warnings relating to enum collisions
* [#12256](https://github.com/netbox-community/netbox/issues/12256) - Fix OpenAPI schema warnings relating to nested serializers * [#12256](https://github.com/netbox-community/netbox/issues/12256) - Fix OpenAPI schema warnings relating to nested serializers
* [#12288](https://github.com/netbox-community/netbox/issues/12288) - Include `servers` definition in OpenAPI spec * [#12288](https://github.com/netbox-community/netbox/issues/12288) - Include `servers` definition in OpenAPI spec
* [#12299](https://github.com/netbox-community/netbox/issues/12299) - Fix object list widget support for filtering by multiple values
### Other Changes ### Other Changes

View File

@ -229,7 +229,7 @@ class ObjectListWidget(DashboardWidget):
htmx_url = None htmx_url = None
if parameters := self.config.get('url_params'): if parameters := self.config.get('url_params'):
try: try:
htmx_url = f'{htmx_url}?{urlencode(parameters)}' htmx_url = f'{htmx_url}?{urlencode(parameters, doseq=True)}'
except ValueError: except ValueError:
pass pass
return render_to_string(self.template_name, { return render_to_string(self.template_name, {