This commit is contained in:
Oliver Walters committed 2019-06-18 01:32:29 +10:00
1 parent 79cd05423c
commit ea0da4c8f8
2 files changed
+1 -4

No files matched your search

-3
View File
@@ -135,7 +135,6 @@ class PartList(generics.ListCreateAPIView):
# TODO - Annotate total being built
# TODO - Annotate total on order
# TODO - Annotate
# Reduce the number of lookups we need to do for the part categories
categories = {}
@@ -155,9 +154,7 @@ class PartList(generics.ListCreateAPIView):
else:
item['category__name'] = None
return Response(data)
def get_queryset(self):