style(demo_data): fix line break for product image save method
Simplify readability by unifying the method call into a single line. No functional changes.
This commit is contained in:
parent
1c10d5ca53
commit
10f5c798d4
1 changed files with 1 additions and 3 deletions
|
|
@ -443,9 +443,7 @@ class Command(BaseCommand):
|
||||||
alt=product.name,
|
alt=product.name,
|
||||||
priority=priority,
|
priority=priority,
|
||||||
)
|
)
|
||||||
product_image.image.save(
|
product_image.image.save(image_path.name, ContentFile(image_content), save=True)
|
||||||
image_path.name, ContentFile(image_content), save=True
|
|
||||||
)
|
|
||||||
|
|
||||||
@transaction.atomic
|
@transaction.atomic
|
||||||
def _create_demo_users(self, count: int) -> list:
|
def _create_demo_users(self, count: int) -> list:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue