2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Add metadata endpoints for SalesOrder and PurchaseOrder models

This commit is contained in:
Oliver Walters
2022-05-16 21:40:10 +10:00
parent 5582c8ba43
commit bd17458f37
6 changed files with 43 additions and 14 deletions

View File

@ -1384,7 +1384,7 @@ class LocationMetadata(generics.RetrieveUpdateAPIView):
def get_serializer(self, *args, **kwargs):
return MetadataSerializer(StockLocation, *args, **kwargs)
queryset = StockLocation.objects.all()
@ -1412,8 +1412,7 @@ stock_api_urls = [
re_path(r'^.*$', LocationDetail.as_view(), name='api-location-detail'),
])),
re_path(r'^.*$', StockLocationList.as_view(), name='api-location-list'),
])),