From 52eafa2da75fdf28cd857b559c4d83b7b46583c0 Mon Sep 17 00:00:00 2001 From: lgdtimtou Date: Thu, 23 May 2024 11:13:29 +0200 Subject: [PATCH] Kleine bugfix --- api/models/indiening.py | 1 - 1 file changed, 1 deletion(-) diff --git a/api/models/indiening.py b/api/models/indiening.py index 0ee37e19..324a86df 100644 --- a/api/models/indiening.py +++ b/api/models/indiening.py @@ -81,7 +81,6 @@ def save(self, *args, **kwargs): "temp", f"indiening_{self.indiening_id}" ) default_storage.save(new_path, ContentFile(old_file.read())) - old_file.storage.delete(old_file.name) self.bestand.name = new_path super(Indiening, self).save(*args, **kwargs)