I'm trying to create a custom form field and I'm not succeeding at it so
far.

I want to create an autocomplete field with jquery. It would be used on
models that refer another model via a foreign key where the linked model
have an id and a name (unique). I would like to render the name of the
linked model in html. I would like the user to be able to select a value via
autocompletion (possibly thousands of values). And I would like the
to_python to query the db to get the actual object associated with the name
the user picked via autocompletion.

The javascript part of the equation works very well. However, I'm having
trouble with the creating a custom field part. I wasted a few hours on this
so far and I'm just not getting how to do it.

Could someone give me some pointers on this?

Thanks

-- 
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 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to