fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Admin: filter books by print on demand.
[wolnelektury.git]
/
src
/
catalogue
/
admin.py
diff --git
a/src/catalogue/admin.py
b/src/catalogue/admin.py
index
88377e7
..
adc2eaf
100644
(file)
--- a/
src/catalogue/admin.py
+++ b/
src/catalogue/admin.py
@@
-30,6
+30,7
@@
class BookAdmin(admin.ModelAdmin):
list_display = (
'title', 'slug', 'created_at', 'has_epub_file', 'has_html_file', 'has_description',
)
+ list_filter = ['print_on_demand']
search_fields = ('title',)
ordering = ('title',)