Django admin filter_horizontal (& filter_vertical) funktioniert nicht

Ich versuche, ModelAdmin.filter_horizontal und ModelAdmin.filter_vertical für ManyToMany Feld anstelle von " select multiple box, aber alles was ich bekomme ist:
Django admin filter_horizontal (& filter_vertical) funktioniert nicht

Mein Modell:


class Title(models.Model):
    #...
    production_companies = models.ManyToManyField(Company, verbose_name="компании-производители")
    #...

Meine admin:


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

Die javascripts geladen werden, OK, ich weiß wirklich nicht bekommen, was passiert. Django 1.1.1 stabil.

InformationsquelleAutor negus | 2010-05-05
Schreibe einen Kommentar