summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/media/models.py1
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)