Bug fix for stock item tracking API

This commit is contained in:
Oliver Walters committed 2021-05-18 19:06:41 +10:00
1 parent 56fd8132c7
commit 5204567628
2 files changed
+8

No files matched your search

+3
View File
@@ -1018,6 +1018,9 @@ class StockTrackingList(generics.ListAPIView):
for item in data:
deltas = item['deltas']
if not deltas:
deltas = {}
# Add location detail
if 'location' in deltas:
try: