janbrot
janbrot

Reputation: 185

django xadmin m2m filter_horizontal not working

I am trying to get filter_horizontal to work with xadmin, but for some reason it does not work if I just type in:

filter_horizontal = ('someField',)

Upvotes: 2

Views: 281

Answers (1)

janbrot
janbrot

Reputation: 185

Well like always! Right after posting my question I ACTUALLY start reading the source code of xadmin and see that all you have to do it the following :

style_fields = {'someField': 'm2m_transfer'}

Upvotes: 4

Related Questions