addd in sorting for category

fixes #1689
This commit is contained in:
Matthias 2021-06-20 22:49:06 +02:00
parent 05142d977a
commit 80e47b6f76
2 changed files with 2 additions and 0 deletions

View File

@ -706,6 +706,7 @@ class PartList(generics.ListCreateAPIView):
'creation_date',
'IPN',
'in_stock',
'category',
]
# Default ordering

View File

@ -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) {