简体   繁体   中英

Creating Dynamic dropdown in django modelform

I have a single class with three fields in in my model. I want to make a dynamic dropdown so that when I select first field the second has to change and so on. I have gone through this question Django/jQuery Cascading Select Boxes? but it seems like the solution there assumes multiple classes but I have a single class.

PS: I am a novice in Jquery and Javascript so anything which mainly involves django manipulation would be of great help.

There is a great library for django called django-autocomplete-light

You can look at http://django-autocomplete-light.readthedocs.org/en/latest/dependant.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM