mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 17:28:11 +00:00
Bug fix for data migration
This commit is contained in:
@@ -12,12 +12,11 @@ def update_parameter(apps, schema_editor):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
PartParameter = apps.get_model("part", "PartParameter")
|
PartParameter = apps.get_model("part", "PartParameter")
|
||||||
Part = apps.get_model("part", "Part")
|
|
||||||
ContentType = apps.get_model("contenttypes", "ContentType")
|
ContentType = apps.get_model("contenttypes", "ContentType")
|
||||||
|
|
||||||
part_content_type, created = ContentType.objects.get_or_create(
|
part_content_type, created = ContentType.objects.get_or_create(
|
||||||
app_label="part",
|
app_label="part",
|
||||||
model="partparameter",
|
model="part",
|
||||||
)
|
)
|
||||||
|
|
||||||
parameters_to_update = []
|
parameters_to_update = []
|
||||||
|
|||||||
Reference in New Issue
Block a user