summaryrefslogtreecommitdiff
path: root/app/jrnl/admin.py
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2019-11-10 08:59:39 -0500
committerluxagraf <sng@luxagraf.net>2019-11-10 08:59:39 -0500
commita968aaa8dcbc7465b774bba159e74f71bf7858f3 (patch)
treecd4a518012a8d801412e8f56a85dfedc34451ac3 /app/jrnl/admin.py
parentc3c2664ea31f2f561893ff4e51fded995251bed9 (diff)
renamed new books relation to just books
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 1c82d25..78a2630 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_new')
+ 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_new', 'related')
+ filter_horizontal = ('field_notes', 'books', 'related')
fieldsets = (
('Entry', {
'fields': (
@@ -74,7 +74,7 @@ class EntryAdmin(OSMGeoAdmin):
('Extra', {
'fields': (
'field_notes',
- 'books_new',
+ 'books',
'related',
),
'classes': (