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 78a2630..1c82d25 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('related').prefetch_related('books')
+ test_model_qs = test_model_qs.prefetch_related('related').prefetch_related('books_new')
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', 'related')
+ filter_horizontal = ('field_notes', 'books_new', 'related')
fieldsets = (
('Entry', {
'fields': (
@@ -74,7 +74,7 @@ class EntryAdmin(OSMGeoAdmin):
('Extra', {
'fields': (
'field_notes',
- 'books',
+ 'books_new',
'related',
),
'classes': (