fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Basic picture lists.
[wolnelektury.git]
/
src
/
catalogue
/
admin.py
diff --git
a/src/catalogue/admin.py
b/src/catalogue/admin.py
index
4f30b24
..
2866fcc
100644
(file)
--- a/
src/catalogue/admin.py
+++ b/
src/catalogue/admin.py
@@
-40,6
+40,7
@@
class BookAdmin(admin.ModelAdmin):
('wiki_link', BlankFieldListFilter),
('parent', EmptyFieldListFilter),
]
('wiki_link', BlankFieldListFilter),
('parent', EmptyFieldListFilter),
]
+ date_hierarchy = 'created_at'
search_fields = ('title',)
ordering = ('title',)
search_fields = ('title',)
ordering = ('title',)
@@
-52,7
+53,7
@@
class FragmentAdmin(admin.ModelAdmin):
class CollectionAdmin(admin.ModelAdmin):
class CollectionAdmin(admin.ModelAdmin):
- list_display = ('title', 'listed')
+ list_display = ('title', 'listed'
, 'role'
)
prepopulated_fields = {'slug': ('title',)}
prepopulated_fields = {'slug': ('title',)}