From 7618518dc704ff0c193c5685471f848d2ce61cd9 Mon Sep 17 00:00:00 2001 From: Mojtaba-z Date: Mon, 9 Feb 2026 09:43:28 +0330 Subject: [PATCH] fix --> bug of download uploadded file --- apps/tag/web/api/v1/api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/tag/web/api/v1/api.py b/apps/tag/web/api/v1/api.py index aa0b586..26fc151 100644 --- a/apps/tag/web/api/v1/api.py +++ b/apps/tag/web/api/v1/api.py @@ -1,4 +1,3 @@ -import random import typing from django.db import transaction @@ -762,7 +761,7 @@ class TagDistributionBatchViewSet( document = request.FILES.get('dist_exit_document') document_url = upload_to_storage( document, - f'{random.randint(1000, 9999)}_distribution_batch_document.{str(document).split(".")[1]}' + f'distribution_batch_document.{str(document).split(".")[1]}' ) dist_batch.warehouse_exit_doc = document_url dist_batch.save(update_fields=['warehouse_exit_doc'])