From bac2d5f7b892b76c8f16a80675438c1807a3cac7 Mon Sep 17 00:00:00 2001 From: Mohamed Nouffer Date: Thu, 24 Mar 2022 09:54:11 +0530 Subject: [PATCH] update --- rog/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rog/models.py b/rog/models.py index 035968e..c8c17a7 100644 --- a/rog/models.py +++ b/rog/models.py @@ -314,7 +314,7 @@ def getMappingforModel(tbl, shp): def get_file_path(instance, filename): ext = filename.split('.')[-1] - filename = "%s.%s" % (uuid.uuid4(), ext) + filename = "%s/%s.%s" % (uuid.uuid4(), uuid.uuid4(), ext) return os.path.join('uploads/geoms', filename)