'has_ipn' filter method did not return queryset

This commit is contained in:
eeintech 2021-08-03 12:21:44 -04:00
parent 529742b520
commit 29c8daed0a

View File

@ -443,6 +443,8 @@ class PartFilter(rest_filters.FilterSet):
else:
queryset = queryset.filter(IPN='')
return queryset
# Regex filter for name
name_regex = rest_filters.CharFilter(label='Filter by name (regex)', field_name='name', lookup_expr='iregex')