Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » Alphabetic filtering of Django Admin drop down menu [RSS Feed]

#1 Dec. 7, 2010 18:30:24

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

Alphabetic filtering of Django Admin drop down menu


Hi All

In one of tables that we access through the Admin menu we have around
50,000 objects which return string o/p as the return value, but the
problem is that it takes too long for them to load ( more than few
minutes) in a drop down

I have also gone through the raw_id_fields but it doesn't fit our
requirement

Is there a way that we can have alphabetic pagination in the drop down
menu of Admin



Thanks in advance
Subramanyam



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

Offline

#2 Dec. 7, 2010 19:29:39

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

Alphabetic filtering of Django Admin drop down menu


If you can't use raw_id_fields i guess you should write that view and
use javascript to search inside the view.

Can you use a auto complete approach instead a drop down menu? If you
can, my suggestion is to use a jquery plugin to do the hard work:http://docs.jquery.com/Plugins/autocomplete--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Dec. 8, 2010 17:14:21

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

Alphabetic filtering of Django Admin drop down menu


Should your relationship be Many-to-Many I found this to be very
helpful:

Autocomplete manytomany widget for admin panelhttp://djangosnippets.org/snippets/1365/On Dec 7, 1:29 pm, Heigler <lordheig...@gmail.com> wrote:
> If you can't use raw_id_fields i guess you should write that view and
> use javascript to search inside the view.
>
> Can you use a auto complete approach instead a drop down menu? If you
> can, my suggestion is to use a jquery plugin to do the hard
> work:http://docs.jquery.com/Plugins/autocomplete--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » Alphabetic filtering of Django Admin drop down menu [RSS Feed]

Board footer

Moderator control

Enjoy the 20th of October
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