From fd5d20ad13ac2d38d6eff15f76bb1f6b9d841c00 Mon Sep 17 00:00:00 2001 From: Oliver Date: Fri, 9 Jul 2021 09:08:55 +1000 Subject: [PATCH] Fix case for filtering parts by IPN --- InvenTree/part/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 2f66225a90..d236eb6398 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -426,14 +426,14 @@ class PartFilter(rest_filters.FilterSet): queryset = queryset.filter(IPN='') # Exact match for IPN - ipn = rest_filters.CharFilter( + IPN = rest_filters.CharFilter( label='Filter by exact IPN (internal part number)', field_name='IPN', lookup_expr="iexact" ) # Regex match for IPN - ipn_regex = rest_filters.CharFilter( + IPN_regex = rest_filters.CharFilter( label='Filter by regex on IPN (internal part number) field', field_name='IPN', lookup_expr='iregex' )