mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-09 10:33:05 +00:00
'has_ipn' filter method did not return queryset
This commit is contained in:
1 parent
529742b520
commit
29c8daed0a
1 file changed
+2
@@ -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')
|
||||
|
||||
|
||||
Reference in new issue
Block a user