Fixes for build order table

This commit is contained in:
Oliver Walters committed 2021-03-03 08:39:14 +11:00
1 parent 4a28fa7fa8
commit 14000517ce
3 files changed
+17 -2

No files matched your search

+16
View File
@@ -38,6 +38,22 @@ class BuildList(generics.ListCreateAPIView):
'sales_order',
]
ordering_fields = [
'reference',
'part__name',
'status',
'creation_date',
'target_date',
'completion_date',
'quantity',
]
search_fields = [
'reference',
'part__name',
'description',
]
def get_queryset(self):
"""
Override the queryset filtering,