Django admin's filter_horizontal (& filter_vertical) not working

Posted by negus on Stack Overflow See other posts from Stack Overflow or by negus
Published on 2010-05-05T12:53:37Z Indexed on 2010/05/05 12:58 UTC
Read the original article Hit count: 257

Filed under:
|
|

I'm trying to use ModelAdmin.filter_horizontal and ModelAdmin.filter_vertical for ManyToMany field instead of select multiple box but all I get is:

My model:


class Title(models.Model):
    #...
    production_companies = models.ManyToManyField(Company, verbose_name="????????-?????????????")
    #...

My admin:


class TitleAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("original_name",)}
    filter_horizontal = ("production_companies",)
    radio_fields = {"state": admin.HORIZONTAL}
    #...

The javascripts are loading OK, I really don't get what happens. Django 1.1.1 stable.

© Stack Overflow or respective owner

Related posts about django-admin

Related posts about django