Mention that the final number includes dependencies

This commit is contained in:
Andrew Godwin 2023-11-12 17:12:05 -07:00
parent ab3648e05d
commit 9fc497f826
1 changed files with 1 additions and 1 deletions

View File

@ -46,6 +46,6 @@ class Command(BaseCommand):
number_deleted, _ = Post.objects.filter( number_deleted, _ = Post.objects.filter(
id__in=post_ids_and_uris.values() id__in=post_ids_and_uris.values()
).delete() ).delete()
print(f"Deleted {number_deleted} posts") print(f"Deleted {number_deleted} posts and dependencies")
if number_deleted == 0: if number_deleted == 0:
sys.exit(1) sys.exit(1)