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

Fixes #7417: Prevent exception when filtering objects list by invalid tag

This commit is contained in:
jeremystretch
2021-10-01 14:07:26 -04:00
parent 724997cb48
commit a1f271d7d9
2 changed files with 4 additions and 0 deletions

View File

@@ -398,6 +398,9 @@ def applied_filters(form, query_params):
applied_filters = []
for filter_name in form.changed_data:
if filter_name not in form.cleaned_data:
continue
querydict = query_params.copy()
if filter_name not in querydict:
continue