2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-01 07:14:28 +00:00

simplify call

This commit is contained in:
Matthias
2021-12-29 02:22:10 +01:00
parent 597d26d3d4
commit f8ce23217e
+1 -1
View File
@@ -471,7 +471,7 @@ class StockList(generics.ListCreateAPIView):
if serial_numbers:
# If serial numbers are specified, check that they match!
try:
serials = extract_serial_numbers(serial_numbers, data['quantity'])
serials = extract_serial_numbers(serial_numbers, quantity)
except DjangoValidationError as e:
raise ValidationError({
'quantity': e.messages,