Format demo purge for Jenkins lint

This commit is contained in:
2026-04-06 02:42:58 +02:00
parent 5f0c7bd9b9
commit 4003f698d2

View File

@@ -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()