Merge pull request #244 from SchrodingersGat/search-ipn

Search part by IPN
This commit is contained in:
Oliver 2019-05-06 11:27:08 +10:00 committed by GitHub
commit c22494b7e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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',