Django Dynamic Drop-down List from Database

后端 未结 2 438
萌比男神i
萌比男神i 2021-01-31 23:15

I wanted to develop a Django app and one of the functionalities I\'d like to have is dynamic drop-down lists...specifically for vehicle makes and models...selecting a specific m

2条回答
  •  你的背包
    2021-02-01 00:12

    This is uncanny: Dynamic Filtered Drop-Down Choice Fields With Django

    His question:

    "Here is the situation: I have a database with car makes and models. When a user selects a make, I want to update the models drop-down with only the models associated with that make. ... Therefore I want to use Ajax to populate the data."

    You're not the same guy? :)

提交回复
热议问题