diff --git a/opentech/public/news/management/commands/migrate_news.py b/opentech/public/news/management/commands/migrate_news.py index a2773c86d9a00844fcf6b49f5023aa597280c25e..c1d6357b77f0619f4636d48797776b5d113f0761 100644 --- a/opentech/public/news/management/commands/migrate_news.py +++ b/opentech/public/news/management/commands/migrate_news.py @@ -74,7 +74,6 @@ class Command(BaseCommand): # TODO timezone? news.submit_time = datetime.fromtimestamp(int(node['created']), timezone.utc) news.publication_date = datetime.fromtimestamp(int(node['created']), timezone.utc) - print(news.publication_date) news.title = node['title'] @@ -120,7 +119,7 @@ class Command(BaseCommand): author=PersonPage.objects.get(title=name) )) except PersonPage.DoesNotExist: - print(f'missing person page: {name}') + self.stdout.write(f'Missing person page: {name}') try: if not news.get_parent():