Skip to content

Commit

Permalink
Bestanden van indieningen weer proberen fixen, werkt lokaal maar niet…
Browse files Browse the repository at this point in the history
… op server
  • Loading branch information
LGDTimtou committed May 23, 2024
1 parent 0b8a71f commit c02792e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions api/models/indiening.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c02792e

Please sign in to comment.