From c02792ef5eb4448035df1fb0e3742a5cdd22dc66 Mon Sep 17 00:00:00 2001 From: lgdtimtou Date: Thu, 23 May 2024 18:32:50 +0200 Subject: [PATCH] Bestanden van indieningen weer proberen fixen, werkt lokaal maar niet op server --- api/models/indiening.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/models/indiening.py b/api/models/indiening.py index ca72f2b6..930c4ba9 100644 --- a/api/models/indiening.py +++ b/api/models/indiening.py @@ -83,10 +83,8 @@ def save(self, *args, **kwargs): ) default_storage.save(new_path, ContentFile(old_file.read())) self.bestand.name = new_path - super(Indiening, self).save(*args, **kwargs) default_storage.delete(old_file_name) - else: - super(Indiening, self).save(*args, **kwargs) + self.save() def run_tests_async(instance):