From 9b47f6dd7bf105cd4bde04f24fc03c37e10b9d8a Mon Sep 17 00:00:00 2001 From: Egor fureunoir Gorbunov Date: Wed, 13 Aug 2025 20:35:02 +0300 Subject: [PATCH] Fixes: 1) Correct file path lookup for digital assets in download logic; Extra: Adjusted logic to ensure compatibility with `digital_asset.path`. --- core/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views.py b/core/views.py index 74ef3e49..c9d5c9fd 100644 --- a/core/views.py +++ b/core/views.py @@ -482,7 +482,7 @@ def download_digital_asset_view(request, *args, **kwargs): download.num_downloads += 1 download.save() - file_path = download.order_product.product.stocks.first().digital_asset.file.path + file_path = download.order_product.product.stocks.first().digital_asset.path content_type, encoding = mimetypes.guess_type(file_path) if not content_type: