How to Implement Dependent/Chained Dropdown List with Django

preview_player
Показать описание
How to Implement Dependent/Chained Dropdown List with Django. Dependent or chained dropdown list is a special field that relies on a previously selected field so to display a list of filtered options. A common use case is on the selection of state/province and cities, where you first pick the state, and then based on the state, the application displays a list of cities located in the state.

Video by Sunanda Somwase
Рекомендации по теме
Комментарии
Автор

thank you very much it is working correctly.
but I have got a question Is there any possibility of adding another chained dropdown?
thanks for your support!

redaelkassah
Автор

where did u get #id_college & #id_branch in the your <script> in student_form.html ?

wongjunlong
Автор

Dear mam,
My name is prince and i'm a college student in computer science branch.
I've been trying to use **ChainedForeignKey** From **smart_selects** but i couldn't do it because of the several changes have to be done in urls.py and in settings.py and in models.py and etc..
would you please help me to do it..
for this act, i shall ever thankful to you.

princebhagat
Автор

i had got issue in HTML drop-down from abstract models :(

ishanalvin
Автор

Thanks you for your tutorials. I request you to make a tutorials about autocomplete address information where user just submit pin code then division, district and upazila automatically set from database or views.py like choice fields

MdManikSarker
Автор

Great it's working perfectly but can anyone can tell me that can we do the same thing in Django Admin site ? If yes then can you please share any source here I need this same task in django admin site. Highly appreciated Thanks.

bilalzafar
Автор

why do i feel so depressed that i am doing worse than little kid. :(

DC-xpvr
Автор

for details of code follow;; it is similar just lable name changed ( not understand comments on city at vdo clip 5:49 which is mentioned in below tutorial from code band

ferozahmed