2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-16 01:08:12 +00:00

Bug fix for data migration

This commit is contained in:
Oliver Walters
2025-12-03 13:17:23 +00:00
parent f5839fd302
commit 7ff51263e5

View File

@@ -12,12 +12,11 @@ def update_parameter(apps, schema_editor):
"""
PartParameter = apps.get_model("part", "PartParameter")
Part = apps.get_model("part", "Part")
ContentType = apps.get_model("contenttypes", "ContentType")
part_content_type, created = ContentType.objects.get_or_create(
app_label="part",
model="partparameter",
model="part",
)
parameters_to_update = []