summaryrefslogtreecommitdiff
path: root/app/jrnl/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r--app/jrnl/admin.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/jrnl/admin.py b/app/jrnl/admin.py
index 081db39..70bf229 100644
--- a/app/jrnl/admin.py
+++ b/app/jrnl/admin.py
@@ -22,7 +22,7 @@ class EntryAdmin(OSMGeoAdmin):
def get_queryset(self, request):
test_model_qs = super(EntryAdmin, self).get_queryset(request)
- test_model_qs = test_model_qs.prefetch_related('newrelated').prefetch_related('books')
+ test_model_qs = test_model_qs.prefetch_related('related').prefetch_related('books')
return test_model_qs
@@ -44,7 +44,7 @@ class EntryAdmin(OSMGeoAdmin):
search_fields = ['title', 'body_markdown']
prepopulated_fields = {"slug": ('title',)}
list_filter = ('pub_date', 'enable_comments', 'status', 'location__state__country__lux_region')
- filter_horizontal = ('field_notes', 'books', 'newrelated')
+ filter_horizontal = ('field_notes', 'books', 'related')
fieldsets = (
('Entry', {
'fields': (
@@ -75,7 +75,7 @@ class EntryAdmin(OSMGeoAdmin):
'fields': (
'field_notes',
'books',
- 'newrelated',
+ 'related',
'oldrelated',
),
'classes': (