diff --git a/InvenTree/stock/models.py b/InvenTree/stock/models.py index 785961f328..0aa63687c9 100644 --- a/InvenTree/stock/models.py +++ b/InvenTree/stock/models.py @@ -7,7 +7,6 @@ Stock database model definitions from __future__ import unicode_literals import os -import re from django.utils.translation import gettext_lazy as _ from django.core.exceptions import ValidationError, FieldError diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index 24a90f59d0..9bd5ea64be 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -72,7 +72,7 @@ class StockItemSerializerBrief(InvenTree.serializers.InvenTreeModelSerializer): 'supplier_part', 'uid', ] - + def validate_serial(self, value): if extract_int(value) > 2147483647: raise serializers.ValidationError('serial is to to big')