generated from westfarn/web_django_template
Align the public site with the PRINTFORGE banner for client demos.
CI / test (pull_request) Successful in 38s
CI / test (pull_request) Successful in 38s
Replace orange with cyan/lime/navy, swap the splash for a print animation, make smart-crop optional, and add a prod-safe seed_demo command. Closes #5. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -298,10 +298,12 @@ def portal_product_edit(request, pk=None):
|
||||
remove_product_images(
|
||||
product, request.POST.getlist("remove_image")
|
||||
)
|
||||
smart_crop = request.POST.get("smart_crop", "on") == "on"
|
||||
append_product_images(
|
||||
product,
|
||||
uploads=request.FILES.getlist("images"),
|
||||
user=request.user,
|
||||
smart_crop=smart_crop,
|
||||
)
|
||||
for key, color in colors.items():
|
||||
uploads = request.FILES.getlist(f"color_images_{key}")
|
||||
@@ -312,6 +314,7 @@ def portal_product_edit(request, pk=None):
|
||||
uploads=uploads,
|
||||
user=request.user,
|
||||
color=color,
|
||||
smart_crop=smart_crop,
|
||||
)
|
||||
refresh_listing_image(product)
|
||||
_delete_replaced_file(
|
||||
|
||||
Reference in New Issue
Block a user