mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge pull request #1692 from matmair/part-table-cat-sort
Support sorting by category in part-table
This commit is contained in:
commit
637033cf7d
@ -706,6 +706,7 @@ class PartList(generics.ListCreateAPIView):
|
||||
'creation_date',
|
||||
'IPN',
|
||||
'in_stock',
|
||||
'category',
|
||||
]
|
||||
|
||||
# Default ordering
|
||||
|
@ -447,6 +447,7 @@ function loadPartTable(table, url, options={}) {
|
||||
|
||||
columns.push({
|
||||
sortable: true,
|
||||
sortName: 'category',
|
||||
field: 'category_detail',
|
||||
title: '{% trans "Category" %}',
|
||||
formatter: function(value, row, index, field) {
|
||||
|
Loading…
Reference in New Issue
Block a user