How to customize AdminWidget FilteredSelectMultiple?

157 views
Skip to first unread message

Mei B

unread,
Jul 22, 2019, 8:21:08 PM7/22/19
to Django users
I'm trying to use the admin widget FilteredSelectMultiple, I can get it to render on my page, but I want to customize it a bit more.

I want to change the labels from available/chosen, change the size, and reorder the boxes (have chosen be on the left) How do I go about doing that?

Charlotte Wood

unread,
Jul 23, 2019, 3:43:57 PM7/23/19
to django...@googlegroups.com
Can you post your code?

On Mon, Jul 22, 2019, 7:20 PM Mei B <lidokaw...@gmail.com> wrote:
I'm trying to use the admin widget FilteredSelectMultiple, I can get it to render on my page, but I want to customize it a bit more.

I want to change the labels from available/chosen, change the size, and reorder the boxes (have chosen be on the left) How do I go about doing that?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/9ea91cc1-f1b7-44ea-9a40-8b1b5257cdf3%40googlegroups.com.

Mei B

unread,
Jul 23, 2019, 3:48:34 PM7/23/19
to Django users
I figured out how to customize what I want by editing SelectFilter2.js, located in /admin/js/SelectFilter2.js
My question now is, how do I get django to look at this new SelectFilter2.js instead of the original?
I thought I would pop it in my_app/static/admin/js/ but that doesn't seem to be working.
Reply all
Reply to author
Forward
0 new messages