diff --git a/core/views.py b/core/views.py index 9391ad18..a7235296 100644 --- a/core/views.py +++ b/core/views.py @@ -468,9 +468,7 @@ def download_digital_asset_view(request, *args, **kwargs): a JsonResponse with an error message if an error occurs during the process. """ try: - - uuid_bytes = urlsafe_base64_decode(str(kwargs.get("encoded_uuid"))) - uuid = str(uuid_module.UUID(bytes=uuid_bytes)) + uuid = urlsafe_base64_decode(str(kwargs.get("encoded_uuid"))).decode("utf-8") download = DigitalAssetDownload.objects.get(order_product__uuid=uuid)