diff options
author | luxagraf <sng@luxagraf.net> | 2019-11-10 08:59:39 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2019-11-10 08:59:39 -0500 |
commit | a968aaa8dcbc7465b774bba159e74f71bf7858f3 (patch) | |
tree | cd4a518012a8d801412e8f56a85dfedc34451ac3 /app/jrnl/admin.py | |
parent | c3c2664ea31f2f561893ff4e51fded995251bed9 (diff) |
renamed new books relation to just books
Diffstat (limited to 'app/jrnl/admin.py')
-rw-r--r-- | app/jrnl/admin.py | 6 |
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': ( |