summaryrefslogtreecommitdiff
path: root/app/jrnl
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2019-12-07 14:19:16 +0000
committerlxf <sng@luxagraf.net>2019-12-07 14:19:16 +0000
commit5ae7a60eec8c560075df97bf1ee82de5853d5579 (patch)
tree999eba1e1a928daa59896a3ad9e5dc7f6a471d45 /app/jrnl
parent6653e41e7e6d62c0106cfe38e200ca5d7044cda3 (diff)
fixed a bug in jrnl viewsw
Diffstat (limited to 'app/jrnl')
-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