Skip to content

Commit

Permalink
Show number of surviving posts
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun committed Sep 10, 2024
1 parent 78949a0 commit b4a72fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions djangocms_blog/migrations/0044_copy_plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def move_plugins_to_blog_content(apps, schema_editor):
if post.liveblog:
post.liveblog.delete()

print("Migration 44 finished.", Post.objects.all().count(), "posts survived.")


def move_plugins_back_to_blog(apps, schema_editor):
"""Adds instances for the new model.ATTENTION: All fields of the model must have a valid default value!"""
Expand Down

0 comments on commit b4a72fc

Please sign in to comment.