2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 23:51:08 +00:00

Stock location part list now uses bootstrap table

- Serializers within serializers!
This commit is contained in:
Oliver
2018-05-02 23:08:45 +10:00
parent 211edb23bb
commit 1899d8f3e9
7 changed files with 135 additions and 78 deletions

View File

@@ -40,10 +40,15 @@
{% if category == None %}
{
sortable: true,
field: 'category_name',
field: 'category',
title: 'Category',
formatter: function(value, row, index, field) {
return renderLink(value, row.category_url)
if (row.category) {
return renderLink(row.category.name, row.category.url);
}
else {
return '';
}
}
},
{% endif %}