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):