Format demo purge for Jenkins lint
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user