mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
simplify call
This commit is contained in:
parent
597d26d3d4
commit
f8ce23217e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user