And similar fix for BuildOrder reference field

This commit is contained in:
Oliver Walters 2022-07-14 20:21:53 +10:00
parent bde23c130c
commit ca0f4e0031

View File

@ -24,6 +24,10 @@ def build_refs(apps, schema_editor):
except Exception: # pragma: no cover
ref = 0
# Clip integer value to ensure it does not overflow database field
if ref > 0x7fffffff:
ref = 0x7fffffff
build.reference_int = ref
build.save()