El 13/07/15 10:09, Miguel Pereira Legal escribió:
I have this two questions:

I am trying to write a small stock management system, and I am finding problems in the Form. See, when an item goes out I have a dropbox (ChoiceField) to choose the item that is going out, but this dropbox gets too long when you have so many elements in the data base to choose from.

There is a way to implement a ChoiceField with a integrated search box to make this search and selection more flexible?

If anyone have another idea, I will listen.

In the other hand, about the related dropboxes.
What about if I have a Form where I need to chose a Manufacturer and THEN a Model (i.e Samsung and then S6).

I need that after the selection of "Samsung" the next dropbox filter the options for that manufacturer. I need that functionality because if the user can choose freely the Manufacturer and then de model, it could be wrong (i.e. the user could choose Samsung and then 6S, and 6S is not a cellphone model of Samsung).
I'm a newbie and I guess that you need to use AJAX to accomplish these tasks.
A javascript library, or framework like AngularJS could be useful here.

Cheers,
Felix.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/55A6D11A.9070204%40epepm.cupet.cu.
For more options, visit https://groups.google.com/d/optout.

Reply via email to