Include part revision in stock API / table

This commit is contained in:
Oliver Walters 2019-06-28 09:35:29 +10:00
parent 67b53d9983
commit 047d2f2f4c
2 changed files with 6 additions and 0 deletions

View File

@ -130,6 +130,11 @@ function loadStockTable(table, options) {
name += row.part__name;
if (row.part__revision) {
name += " | ";
name += row.part__revision;
}
return imageHoverIcon(row.part__image) + renderLink(name, '/part/' + row.part + '/stock/');
}
},

View File

@ -291,6 +291,7 @@ class StockList(generics.ListCreateAPIView):
'part',
'part__IPN',
'part__name',
'part__revision',
'part__description',
'part__image',
'part__category',