On 6/22/06, Jeremy Dunck <[EMAIL PROTECTED]> wrote:
>
> On 6/21/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote:
> > For that, you could use either the "limit_choices_to" or
> > "raw_id_admin" field options.
>
> I've seen the Ellington admin and the fact that it uses raw_id_admin a
> good bit.  I was thinking about making an auto-complete widget.
>
> Something like:
>
> class Article(models.Model):
>   headline=TextField()
>
> class Reporter(models.Model):
>   favorite_articles = models.ForeignKey(article, auto_complete=headline)
>
> So that when choosing favorite articles, a reporter could just start
> typing headlines, then select the ones they like with tab completion.
> Upon selection, it'd be added to a multi-select whose values are
> raw_ids.
>
> If others like the idea, I'll try to get going on it.
>

Have a look at my
http://code.djangoproject.com/wiki/AJAXWidgetComboBox . I've actually
got an update to it that uses the new dojo.widget.Select widget (that
I wrote incidentally :), plus a bunch of template tags to make it
easier to use in your own templates.

I would like to see this kind of thing integrated into the admin too.

regards

matthew

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to