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:
|
||||||
# If serial numbers are specified, check that they match!
|
# If serial numbers are specified, check that they match!
|
||||||
try:
|
try:
|
||||||
serials = extract_serial_numbers(serial_numbers, data['quantity'])
|
serials = extract_serial_numbers(serial_numbers, quantity)
|
||||||
except DjangoValidationError as e:
|
except DjangoValidationError as e:
|
||||||
raise ValidationError({
|
raise ValidationError({
|
||||||
'quantity': e.messages,
|
'quantity': e.messages,
|
||||||
|
Loading…
Reference in New Issue
Block a user