Basic picture lists.
[wolnelektury.git] / src / catalogue / admin.py
index 47032ba..2866fcc 100644 (file)
@@ -38,7 +38,9 @@ class BookAdmin(admin.ModelAdmin):
     list_filter = [
             'print_on_demand',
             ('wiki_link', BlankFieldListFilter),
     list_filter = [
             'print_on_demand',
             ('wiki_link', BlankFieldListFilter),
+            ('parent', EmptyFieldListFilter),
             ]
             ]
+    date_hierarchy = 'created_at'
     search_fields = ('title',)
     ordering = ('title',)
 
     search_fields = ('title',)
     ordering = ('title',)
 
@@ -51,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',)}