mirror of
https://github.com/inventree/InvenTree.git
synced 2025-12-16 09:18:10 +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")
|
||||
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 = []
|
||||
|
||||
Reference in New Issue
Block a user