Skip to content
Snippets Groups Projects
Commit 500b18c7 authored by Todd Dembrey's avatar Todd Dembrey
Browse files

Add depth into the kwargs for recreating

parent 20be674b
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@ def recreate_objects(apps, schema_editor):
f'{new_model_name.lower()}_ptr': obj,
'draft_title': obj.draft_title,
'content_type': content_type,
'depth': obj.depth,
}
field_values.update(**kwargs)
new_obj = model(**kwargs)
......
......@@ -27,6 +27,7 @@ def recreate_objects(apps, schema_editor):
f'{new_model_name.lower()}_ptr': obj,
'draft_title': obj.draft_title,
'content_type': content_type,
'depth': obj.depth,
}
field_values.update(**kwargs)
new_obj = model(**field_values)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment