Merge pull request #1895 from eeintech/fix_has_ipn_filter

'has_ipn' filter method did not return queryset
This commit is contained in:
Oliver 2021-08-04 08:55:49 +10:00 committed by GitHub
commit 910c57c92d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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')