diff options
author | luxagraf <sng@luxagraf.net> | 2023-06-05 09:10:24 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-06-05 09:10:24 -0500 |
commit | c86ac51858ea137b71d6cef8fe84d6ab0f882e14 (patch) | |
tree | 450202204b63977e4cc527e854581423be3f3281 /app/media/models.py | |
parent | 4fdb134219a9259ae69b00cd22e043048c71f249 (diff) |
media: added a webm helper so I can ssh up videos
Diffstat (limited to 'app/media/models.py')
-rw-r--r-- | app/media/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/media/models.py b/app/media/models.py index 64f427a..d1ef32a 100644 --- a/app/media/models.py +++ b/app/media/models.py @@ -42,6 +42,7 @@ def add_webm(filepath, luxvideo): video = LuxVideo.objects.get(title=luxvideo) video.video_webm.save(filepath, django_file, save=True) + def get_upload_path(self, filename): return "images/original/%s/%s" % (datetime.datetime.today().strftime("%Y"), filename) |