Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CC-2137: use name instead of path #174

Merged
merged 9 commits into from
Jul 8, 2024
2 changes: 1 addition & 1 deletion signbank/video/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
Loading