diff options
author | luxagraf <sng@luxagraf.net> | 2020-12-04 12:04:56 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-12-04 12:04:56 -0500 |
commit | b15ed72cac94a1b7feffd895f57223f296ebdbb2 (patch) | |
tree | e21f7b16141d63401181935ac81304b93bfddc8e | |
parent | 67cad3ae8e7d502925e720e562d94c67df7bd7c5 (diff) |
made featured image secondary size smaller
-rw-r--r-- | TODO | 4 | ||||
-rw-r--r-- | app/posts/models.py | 2 |
2 files changed, 3 insertions, 3 deletions
@@ -38,5 +38,5 @@ Fix out of sequence postgres tables: ALTER TABLE media_luximagesize ALTER COLUMN id SET DEFAULT nextval('media_luximagesize_id_seq'::regclass); SELECT setval('media_luximagesize_id_seq', (SELECT MAX(id) FROM media_luximagesize)+1); -ALTER TABLE media_luximage_sizes ALTER COLUMN id SET DEFAULT nextval('media_luximage_sizes_id_seq'::regclass); -SELECT setval('media_luximage_sizes_id_seq', (SELECT MAX(id) FROM media_luximage_sizes)+1); +ALTER TABLE media_luximage ALTER COLUMN id SET DEFAULT nextval('media_luximage_id_seq'::regclass); +SELECT setval('media_luximage_id_seq', (SELECT MAX(id) FROM media_luximage)+1); diff --git a/app/posts/models.py b/app/posts/models.py index b64dc53..159060e 100644 --- a/app/posts/models.py +++ b/app/posts/models.py @@ -200,7 +200,7 @@ class Post(models.Model): if old and old.featured_image != self.featured_image: # Field has changed if self.featured_image: s = LuxImageSize.objects.get(name="featured_jrnl") - ss = LuxImageSize.objects.get(name="picwide-med") + ss = LuxImageSize.objects.get(name="picwide-sm") self.featured_image.sizes.add(s) self.featured_image.sizes.add(ss) self.featured_image.save() |