summaryrefslogtreecommitdiff
path: root/app/photos/models.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2017-01-04 11:59:38 -0500
committerluxagraf <sng@luxagraf.net>2017-01-04 11:59:38 -0500
commit169fbaa20438f51da69c986da20b615fa9ac87b7 (patch)
treec968e2fb431ba499022a9c4a9299c51d638d534c /app/photos/models.py
parent5edcd5e412e7c7737836e1673f1ca02ef1349a87 (diff)
temporary changes
Diffstat (limited to 'app/photos/models.py')
-rw-r--r--app/photos/models.py4
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)