mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Remove debug messages
This commit is contained in:
parent
ba11a73f91
commit
919f182c25
@ -20,7 +20,7 @@ def update_serials(apps, schema_editor):
|
|||||||
|
|
||||||
serial = 0
|
serial = 0
|
||||||
|
|
||||||
result = re.match(r"^(\d+)", item.serial or "")
|
result = re.match(r"^(\d+)", str(item.serial))
|
||||||
|
|
||||||
if result and len(result.groups()) == 1:
|
if result and len(result.groups()) == 1:
|
||||||
try:
|
try:
|
||||||
@ -30,7 +30,6 @@ def update_serials(apps, schema_editor):
|
|||||||
|
|
||||||
|
|
||||||
item.serial_int = serial
|
item.serial_int = serial
|
||||||
print(item, item.serial, '->', item.serial_int)
|
|
||||||
item.save()
|
item.save()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user