Skip to content

Commit

Permalink
fix: do not delete old translations
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Sep 9, 2024
1 parent 5b7acb9 commit 11abfe1
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 @@ -87,7 +87,7 @@ def move_plugins_to_blog_content(apps, schema_editor):
move_plugins(post.media, content, content_type)
move_plugins(post.content, content, content_type)
move_plugins(post.liveblog, content, content_type)
translation.delete()
post.delete_translation(translation.language_code)
else:
print(f"Post content {translation.title} ({translation.language_code}) already exists, skipping...")

Expand Down

0 comments on commit 11abfe1

Please sign in to comment.