Django admin multipleselect filter

49 views
Skip to first unread message

Andreas Kuhne

unread,
Nov 2, 2015, 9:37:55 AM11/2/15
to django...@googlegroups.com
Hi all,

I have a django site that displays the change list for a class called Order. The Order class has a property called status. I would like to be able to filter the change list by multiple statuses. So a user should be able to check several statuses and show all orders that have one of the checked statuses. 

Has anyone done anything similar and could give me tips on howto begin?

Regards,

Andréas

Derek

unread,
Nov 4, 2015, 11:34:43 AM11/4/15
to Django users
This project does not seem active, but maybe you could still make use of it:

https://github.com/kevwilde/django-adminfilters

Otherwise some other suggestions:

Andreas Kuhne

unread,
Nov 4, 2015, 3:25:30 PM11/4/15
to django...@googlegroups.com
HI!

Thanks for the pointers. I actually was able to solve it by myself. What I did was create a multichoice checkbox field in a form. Then I used a bit of javascript just to reformat the parameters in a way that I wanted then. Works very good actually. :-)

Med vänliga hälsningar,

Andréas Kühne
Software Development Manager
Suitopia Scandinavia AB

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5bb5918a-6853-4481-915b-a551d1565737%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages