fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
04a361d
)
Admin: filter books by print on demand.
author
Radek Czajka
<rczajka@rczajka.pl>
Wed, 15 Jan 2020 14:47:51 +0000
(15:47 +0100)
committer
Radek Czajka
<rczajka@rczajka.pl>
Wed, 15 Jan 2020 14:47:51 +0000
(15:47 +0100)
src/catalogue/admin.py
patch
|
blob
|
history
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_display = (
'title', 'slug', 'created_at', 'has_epub_file', 'has_html_file', 'has_description',
)
+ list_filter = ['print_on_demand']
search_fields = ('title',)
ordering = ('title',)
search_fields = ('title',)
ordering = ('title',)