summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/jrnl/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/models.py b/app/jrnl/models.py
index a10c5a6..b9ebaf8 100644
--- a/app/jrnl/models.py
+++ b/app/jrnl/models.py
@@ -282,7 +282,7 @@ def post_save_events(sender, update_fields, created, instance, **kwargs):
related, c = RelatedPost.objects.get_or_create(model_name=instance.get_content_type(), entry_id = instance.id, pub_date=instance.pub_date, title=instance.title, slug=instance.slug)
if update_fields:
if 'title' in update_fields or 'slug' in update_fields:
- related, c = RelatedPost.objects.get_or_create(model_name=instance.get_content_type(), entry_id = instance.id, pub_date=instance.pubdate)
+ related, c = RelatedPost.objects.get_or_create(model_name=instance.get_content_type(), entry_id = instance.id, pub_date=instance.pub_date)
related.title = instance.title
related.slug = instance.slug
related.save()