diff options
author | luxagraf <sng@luxagraf.net> | 2017-01-04 11:59:38 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2017-01-04 11:59:38 -0500 |
commit | 169fbaa20438f51da69c986da20b615fa9ac87b7 (patch) | |
tree | c968e2fb431ba499022a9c4a9299c51d638d534c /app/photos/models.py | |
parent | 5edcd5e412e7c7737836e1673f1ca02ef1349a87 (diff) |
temporary changes
Diffstat (limited to 'app/photos/models.py')
-rw-r--r-- | app/photos/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/photos/models.py b/app/photos/models.py index 58bed5a..f0d7ec3 100644 --- a/app/photos/models.py +++ b/app/photos/models.py @@ -23,7 +23,7 @@ from django.db.models.signals import m2m_changed def get_upload_path(self, filename): - return "images/original/%s/%s" % ('2016', filename)#datetime.datetime.today().strftime("%Y"), filename) + return "images/original/%s/%s" % ('2015', filename)#datetime.datetime.today().strftime("%Y"), filename) def get_vid_upload_path(self, filename): return "images/videos/%s/%s" % (datetime.datetime.today().strftime("%Y"), filename) @@ -180,7 +180,7 @@ def post_save_events(sender, update_fields, created, instance, **kwargs): @receiver(m2m_changed, sender=LuxImage.sizes.through) def update_photo_sizes(sender, instance, **kwargs): - base_path = "%s/%s/" % (settings.IMAGES_ROOT, '2016')# instance.pub_date.strftime("%Y")) + base_path = "%s/%s/" % (settings.IMAGES_ROOT, '2015')# instance.pub_date.strftime("%Y")) filename, file_extension = os.path.splitext(instance.image.path) if file_extension != ".mp4": img = Image.open(instance.image.path) |