Search part by IPN

This commit is contained in:
Oliver Walters 2019-05-06 11:23:55 +10:00
parent 7b3209b02d
commit 02bd9c2d05
2 changed files with 6 additions and 0 deletions

View File

@ -151,6 +151,7 @@ class PartList(generics.ListCreateAPIView):
search_fields = [ search_fields = [
'$name', '$name',
'description', 'description',
'$IPN',
] ]

View File

@ -48,6 +48,11 @@
return renderLink(value, row.url); return renderLink(value, row.url);
} }
}, },
{
field: 'IPN',
title: 'Internal Part Number',
searchable: true,
},
{ {
field: 'description', field: 'description',
title: 'Description', title: 'Description',