diff options
author | luxagraf <sng@luxagraf.net> | 2020-08-29 21:38:21 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-08-29 21:38:21 -0400 |
commit | e97f4a37022a5745dd0cbb58f93bf09f10b22889 (patch) | |
tree | 7cb651cf2aaed2570670c4491b667b213825fb7c /app | |
parent | d6a4d143d032ca33a92ae9d1dd7a6b48502dc5ed (diff) |
added same fix to jrnl
Diffstat (limited to 'app')
-rw-r--r-- | app/jrnl/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py index 69d1178..9ceac2d 100644 --- a/app/jrnl/models.py +++ b/app/jrnl/models.py @@ -199,7 +199,7 @@ class Entry(models.Model): self.featured_image.sizes.add(s) self.featured_image.sizes.add(ss) self.featured_image.save() - if old.title != self.title or old.slug != self.slug: + if old and old.title != self.title or old and old.slug != self.slug: related, c = RelatedPost.objects.get_or_create(model_name=self.get_content_type(), entry_id = self.id, pub_date=self.pub_date) related.title = self.title related.slug = self.slug |