2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 22:06:28 +00:00

Fix simple tests

This commit is contained in:
Ben Charlton
2020-08-21 18:53:51 +01:00
parent f7ed48809c
commit c31b30bf83
3 changed files with 7 additions and 8 deletions

View File

@ -346,10 +346,12 @@ class Part(MPTTModel):
if n is None:
return 1
elif n is int:
return n + 1
else:
return None
try:
return int(n) + 1
except ValueError:
return None
def getSerialNumberString(self, quantity):
"""