Need urgent help on Django project

27 views
Skip to first unread message

avdesh sharma

unread,
May 10, 2019, 9:41:54 AM5/10/19
to django...@googlegroups.com
Hi Django Users,


I have a registration form in which I wanted to enter only Indian Cities in one fields as a dropdown and their respective states in another field dropdown.
Could you please help me and provide me step by step guidance how to achieve that as I am an intermediate level programmer.


Thanks in advance !

--
Warm Regards,
Avdesh Kumar Sharma
9650031844

Krystian

unread,
May 10, 2019, 9:44:09 AM5/10/19
to Django users

Phako Perez

unread,
May 10, 2019, 9:47:05 AM5/10/19
to django...@googlegroups.com
You could use a dictionary with cities as keys and in first drop down get keys and an if condition for second where it checks first for city if nothing selected then make second disable

Sent from my iPhone
--
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...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF5Nfo4c8%2Bcj6yDzOE9eAWqoRH_7OA5TUo14FL9SEZhJem%2BXuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages