summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/jrnl/models.py2
-rw-r--r--app/photos/models.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py
index ec12b97..6d55d2e 100644
--- a/app/jrnl/models.py
+++ b/app/jrnl/models.py
@@ -170,7 +170,7 @@ class Entry(models.Model):
def save(self):
if self.pk:
- if self.pk >= 160 or self.pk == 129:
+ if (self.pk >= 163 and self.pk != 166) or self.pk == 129:
md = render_images(self.body_markdown)
self.body_html = markdown_to_html(md)
else:
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)