Monday, December 24, 2012

Re: Layered Dropdown List



On Mon, Dec 24, 2012 at 10:47 AM, Xavier Ordoquy <xordoquy@linovia.com> wrote:
Hi,

Le 24 déc. 2012 à 08:43, CodingDaddy <papa@programmingpapa.com> a écrit :

I would like to ask your advice on how I can implement layered dropdown list.
Let's say I have three tables, one called Country, another called State, and the other called 'City'
And you are adding information about a particular city in admin site.
So I want to have a dropdown like thie

Canada
- BC
- Alberta
US
- California
- New York

I am not implementing about countries and states, but this kind of dropdown box is what I would like to get.
The user or admin can select only the states.

I would appreciate any input I can get.
Thank you for reading my question and I hope to hear from you.

Regards


You'll find how to do this with the MEDIA_CHOICES example here: https://docs.djangoproject.com/en/1.4/ref/models/fields/#choices


Regards,
Xavier Ordoquy,
Linovia.

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

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate