Could anybody please explain what are the reasons for
filter_horizontal doesn't work in newforms-admin?
in models.py for the app:
class Block(models.Model):
title = models.CharField(max_length=255)
code = models.CharField(help_text=u"Допустимы цифры и латинские
заглавные буквы", max_length=20, unique=True)
active = models.BooleanField(default=True)
posts = ManyToManyField(Post)
in admin.py for the app:
class BlockOptions(admin.ModelAdmin):
list_display = ('title', 'code', 'active',)
filter_horizontal = ('posts',)
admin.site.register(Block, BlockOptions)
In the admin area it shows only:
"Hold down "Control", or "Command" on a Mac, to select more than one."
and NO select boxes, search input etc!
When filter_horizontal is commented in the code above, simple
multiselect box with "add" link are visible.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---