Skip to content

Commit

Permalink
Merge pull request #326 from SELab-2/backend_extras
Browse files Browse the repository at this point in the history
Backend indiening fix
  • Loading branch information
LGDTimtou authored May 23, 2024
2 parents b815edc + c02792e commit 6bccbf2
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 6bccbf2

Please sign in to comment.