Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Newforms-admin: filter_horizontal doesn't work [RSS Feed]

#1 March 6, 2008 15:38:27

W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newforms-admin: filter_horizontal doesn't work


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 django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#2 March 7, 2008 15:08:38

Brian R.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newforms-admin: filter_horizontal doesn't work


> "Hold down "Control", or "Command" on a Mac, to select more than one."
>
> and NO select boxes, search input etc!

What revision of newforms-admin are you using? Also, what browser is
this behavior is displayed in?

--
Brian Rosnerhttp://oebfare.com--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

#3 March 10, 2008 15:31:53

W.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Newforms-admin: filter_horizontal doesn't work


On 7 мар, 17:07, Brian Rosner <> wrote:
> > "Hold down "Control", or "Command" on a Mac, to select more than one."
>
> > and NO select boxes, search input etc!
>
> What revision of newforms-admin are you using? Also, what browser is
> this behavior is displayed in?
>
> --
> Brian Rosnerhttp://oebfare.comRevision is 0.97-newforms-admin-SVN-7206
Browsers: Firefox 2.0.0.12, IE 6.0.2900.2180

All js scripts are loaded.

Also in User edit screen it works fine for Permissions
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en-~----------~----~----~----~------~----~------~--~---

Offline

  • Root
  • » Django
  • » Newforms-admin: filter_horizontal doesn't work [RSS Feed]

Board footer

Moderator control

Enjoy the 16th of December
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support