Added Manufacturer parts to search, fixed icons, added manufacturer view in supplier part detail page

This commit is contained in:
eeintech
2021-04-01 10:00:15 -04:00
parent a8b858c824
commit 94574b37ae
9 changed files with 93 additions and 20 deletions

View File

@ -193,7 +193,7 @@ class SupplierPartList(generics.ListCreateAPIView):
queryset = SupplierPart.objects.all().prefetch_related(
'part',
'supplier',
'manufacturer_part',
'manufacturer_part__manufacturer',
)
def get_queryset(self):
@ -291,9 +291,9 @@ class SupplierPartList(generics.ListCreateAPIView):
search_fields = [
'SKU',
'supplier__name',
'manufacturer__name',
'manufacturer_part__manufacturer__name',
'description',
'MPN',
'manufacturer_part__MPN',
'part__name',
'part__description',
]