2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 21:20:56 +00:00

Tests for stock app views

This commit is contained in:
Oliver Walters
2019-08-09 20:13:23 +10:00
parent e849f62a6a
commit bd61c89094
3 changed files with 133 additions and 3 deletions

View File

@ -168,9 +168,9 @@ class StockAdjust(AjaxView, FormMixin):
elif 'item' in self.request.GET:
items = [StockItem.objects.get(id=self.request.GET.get('item'))]
# Unsupported query
# Unsupported query (no items)
else:
items = None
items = []
for item in items: