python - Is there a way to select more than one option in django admin filters? -
i have 2 questions, please answer can:
question 1:
in django admin, if have list_filters = ["book"]
, , options "red carpet"
& "bingo dinosaur"
, can select 1 book @ time; either "red carpet"
or "bingo dinosaur"
. there way make user can select both @ same time?
question 2:
in django admin there way combine list_filter
fields? if have list_filer = [" bookname", "bookauthor"]
, there way make book name , author combined in 1 filter , search @ same time?
for first question:
i think it's possible. i've made quick test on admin interface users, , if play url querystring, can combine filters : /admin/auth/user/?is_superuser=1&is_superuser=0
list both super , non-super users.
you'll have override admin filters template generate proper urls needs, though.
i don't understand second question. mean combined ? if select item in first filter , item in second one, have combined filtering, won't ?
Comments
Post a Comment