summaryrefslogtreecommitdiff
path: root/app/jrnl/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/jrnl/views.py')
-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 ed5018b..489d750 100644
--- a/app/jrnl/views.py
+++ b/app/jrnl/views.py
@@ -99,7 +99,7 @@ class EntryDetailView(DateDetailView):
).select_related().order_by('ap_id', 'ap__apclass__kind').distinct("ap")
related = []
for obj in self.object.related.all():
- model = apps.get_model(obj.post_model.app_label, obj.post_model.model)
+ model = apps.get_model(obj.model_name.app_label, obj.model_name.model)
related.append(model.objects.get(slug=obj.slug))
context['related'] = related
return context