2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 03:55:41 +00:00

Remove function call from translated string (#9778)

This commit is contained in:
Oliver
2025-06-14 12:15:20 +10:00
committed by GitHub
parent eb445be770
commit b02bc3842e

View File

@ -716,10 +716,11 @@ def extract_serial_numbers(
raise ValidationError([_('No serial numbers found')])
if len(errors) == 0 and len(serials) != expected_quantity:
n = len(serials)
q = expected_quantity
raise ValidationError([
_(
f'Number of unique serial numbers ({len(serials)}) must match quantity ({expected_quantity})'
)
_(f'Number of unique serial numbers ({n}) must match quantity ({q})')
])
return serials