summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/jrnl/views.py2
-rw-r--r--app/links/admin.py3
2 files changed, 2 insertions, 3 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
diff --git a/app/links/admin.py b/app/links/admin.py
index 136a851..f967dde 100644
--- a/app/links/admin.py
+++ b/app/links/admin.py
@@ -26,8 +26,7 @@ class LinkAdmin(admin.ModelAdmin):
('Details', {
'fields': (
'pub_date',
- ('oldtags', 'image'),
- 'topics',
+ ('tags', 'image'),
'status'
),
'classes': 'collapse'