summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-12-23 05:59:19 -0500
committerluxagraf <sng@luxagraf.net>2019-12-23 05:59:19 -0500
commit25b1e2699782b522c4dbf6d3beff6d8c7b1b270e (patch)
tree7586370e02f20e657627b201f8832668f723d9b3
parent084ff9f4008357a8c82ff0da57b16b908e275774 (diff)
fixed a bug in related posts
-rw-r--r--app/jrnl/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jrnl/views.py b/app/jrnl/views.py
index 489d750..1b38de9 100644
--- a/app/jrnl/views.py
+++ b/app/jrnl/views.py
@@ -100,7 +100,7 @@ class EntryDetailView(DateDetailView):
related = []
for obj in self.object.related.all():
model = apps.get_model(obj.model_name.app_label, obj.model_name.model)
- related.append(model.objects.get(slug=obj.slug))
+ related.append(model.objects.get(slug=obj.slug, pub_date=obj.pub_date))
context['related'] = related
return context