2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 11:35:41 +00:00

Sort by native units first

This commit is contained in:
Oliver Walters
2023-05-22 01:08:30 +10:00
parent 92095d7c2e
commit 4c5800bf74

View File

@ -400,6 +400,7 @@ class SupplierPartList(ListCreateDestroyAPIView):
'supplier': 'supplier__name',
'manufacturer': 'manufacturer_part__manufacturer__name',
'MPN': 'manufacturer_part__MPN',
'pack_units': ['pack_units_native', 'pack_units'],
}
search_fields = [