Just curious but has anyone done this is a production environment?

On Sun, Oct 19, 2008 at 1:05 PM, Russell Keith-Magee <[EMAIL PROTECTED]
> wrote:

>
> On Sun, Oct 19, 2008 at 2:40 AM, Low Kian Seong <[EMAIL PROTECTED]>
> wrote:
> > Dear all,
> >
> > Is there another form the foreignkey field can take besides the dropdown?
> I
> > mean if there are 10,000 enteries for a particular foreign key and I am
> not
> > using the admin interface won't it slow things down?
>
> The simple option is to use the raw_id_fields option on the ModelAdmin
> object for the model concerned.
>
> http://docs.djangoproject.com/en/dev/ref/contrib/admin/#raw-id-fields
>
> The advanced option is to define a custom AJAX widget, and tell the
> ModelAdmin to use that widget for the foreign key in question. For
> details on how to do this, read the forms and ModelAdmin documentation
> and search the Django-users archives.
>
> Yours,
> Russ Magee %-)
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to