mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-01 13:26:25 -06:00
Change var name for clarity
This commit is contained in:
parent
13d8936af4
commit
2f19367e20
@ -183,8 +183,8 @@ class BaseFilterSet(django_filters.FilterSet):
|
||||
filter_cls = type(existing_filter)
|
||||
if lookup_expr == 'empty':
|
||||
filter_cls = django_filters.BooleanFilter
|
||||
for field_to_remove in ('choices', 'null_value'):
|
||||
existing_filter_extra.pop(field_to_remove, None)
|
||||
for param_to_remove in ('choices', 'null_value'):
|
||||
existing_filter_extra.pop(param_to_remove, None)
|
||||
new_filter = filter_cls(
|
||||
field_name=field_name,
|
||||
lookup_expr=lookup_expr,
|
||||
|
Loading…
Reference in New Issue
Block a user