mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-26 15:44:01 +00:00
use self.stdout.write instead of print
This commit is contained in:
parent
390718b63b
commit
22cb8c6b98
1 changed files with 3 additions and 1 deletions
|
|
@ -70,7 +70,9 @@ class Command(BaseCommand):
|
|||
if yes_or_no.lower().startswith('y'):
|
||||
deletion_count = len(pages_to_delete)
|
||||
pages_to_delete.delete()
|
||||
print("%d orphaned page%s deleted." % (deletion_count, "s"[deletion_count==1:]))
|
||||
self.stdout.write(
|
||||
"%d orphaned page%s deleted." % (deletion_count, "s"[deletion_count==1:])
|
||||
)
|
||||
any_problems_fixed = True
|
||||
|
||||
self.stdout.write('')
|
||||
|
|
|
|||
Loading…
Reference in a new issue