PEP fixes

This commit is contained in:
Matthias 2021-12-02 12:13:03 +01:00
parent b0fb5657e8
commit 6657d093d7
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
2 changed files with 1 additions and 2 deletions

View File

@ -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

View File

@ -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')