Thanks. No, I'm not talking about the admin interface - sorry I should
have made that clear. I'm talking about the front end UI.

On Nov 26, 9:11 am, Michel Thadeu Sabchuk <[email protected]> wrote:
> Hi,
>
> > I have a Ticket model that has a Requirement foreign key. The problem
> > is, there could be hundreds of requirements. Offering the user a drop
> > down combo box of requirements to choose from isn't the best option.
> > So how would you let the user select one record from a large
> > selection? What UI widget(s) would you use?
>
> Do you talking about admin interface? You can use raw_id_fields on the
> ModelAdmin class and this way, your user may inform the ID of the
> foreign key he wants, but it have a link to a popup list of item the
> user can filter.
>
> > I suppose I could create an auto-complete text box widget that offers
> > a list of requirements that matches what they typed. But that's a lot
> > of work for someone who doesn't know Javascript (though I do have
> > JQuery plugged into my app) and I don't want to spend hours coding it
> > to find out it's not the best solution. Any suggestions appreciated.
>
> I like the raw_id_fields approach for general use, it offer a great
> flexibility with less code. Anyway, a widget that shows choices as the
> users digits is easier for the user.
>
> I did something on this approach on a brazilian classifieds portal:
>
> http://portaldoclassificado.com/
>
> You can take a look on his javascript code (it do not use jquery). The
> script filter a hidden ul subitens as the user digits on a input
> field.
>
> Best regards!
>
> PS: sorry any language mistakes.
>
> --
> Michel Sabchuk
> Curitiba / Brasil

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
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