Explorar o código

#6732 - Restore resolve_field to the filterset

Daniel Sheppard %!s(int64=4) %!d(string=hai) anos
pai
achega
d3364ef4d1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      netbox/netbox/filtersets.py

+ 1 - 0
netbox/netbox/filtersets.py

@@ -153,6 +153,7 @@ class BaseFilterSet(django_filters.FilterSet):
                         # 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
                         # is the same as the default type for the field
+                        resolve_field(field, lookup_expr)
                         new_filter = type(existing_filter)(
                             field_name=field_name,
                             lookup_expr=lookup_expr,