diff --git a/signbank/video/models.py b/signbank/video/models.py index 1aa8ede0..8de46671 100644 --- a/signbank/video/models.py +++ b/signbank/video/models.py @@ -197,7 +197,7 @@ def rename_video(self): # Set the actual file path to videofile. self.videofile = saved_file_path - old_file.storage.delete(old_file.path) + old_file.storage.delete(old_file.name) def create_filename(self): """Returns a correctly named filename"""