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

#6732 - Restore resolve_field to the filterset

This commit is contained in:
Daniel Sheppard
2021-10-29 14:15:37 -05:00
parent 7c147db324
commit d3364ef4d1

View File

@ -153,6 +153,7 @@ class BaseFilterSet(django_filters.FilterSet):
# The filter field has been explicity defined on the filterset class so we must manually # The filter field has been explicity defined on the filterset class so we must manually
# create the new filter with the same type because there is no guarantee the defined type # create the new filter with the same type because there is no guarantee the defined type
# is the same as the default type for the field # is the same as the default type for the field
resolve_field(field, lookup_expr)
new_filter = type(existing_filter)( new_filter = type(existing_filter)(
field_name=field_name, field_name=field_name,
lookup_expr=lookup_expr, lookup_expr=lookup_expr,