Skip to content

Commit

Permalink
Rename placeholder slot "post_content" to "content" when migrating
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Sep 10, 2024
1 parent 6c985ea commit 7e491a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangocms_blog/migrations/0044_copy_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def move_plugins(source, content, content_type):
if source:
print(f"Creating placeholder {source.slot}")
new_placeholder = source.__class__.objects.create(
slot=source.slot,
slot=source.slot if source.slot != "post_content" else "content",
default_width=source.default_width,
content_type=content_type,
object_id=content.pk,
Expand Down

0 comments on commit 7e491a3

Please sign in to comment.