diff --git a/mandelstudio/management/commands/purge_demo_data.py b/mandelstudio/management/commands/purge_demo_data.py index 72ab01c..be517b9 100644 --- a/mandelstudio/management/commands/purge_demo_data.py +++ b/mandelstudio/management/commands/purge_demo_data.py @@ -76,11 +76,7 @@ class Command(BaseCommand): "template", ] - qs = ( - Page.objects.exclude(depth=1) - .exclude(slug__in=["home"]) - .specific() - ) + qs = Page.objects.exclude(depth=1).exclude(slug__in=["home"]).specific() candidates = [] for page in qs: @@ -142,7 +138,9 @@ class Command(BaseCommand): try: for product in iterable: removed += 1 - self.stdout.write(f"PRODUCT delete id={product.id} title={product.title}") + self.stdout.write( + f"PRODUCT delete id={product.id} title={product.title}" + ) product.delete() finally: register_signal_handlers()