How can I use a customizable queryset as dropdown choices in a form?

前端 未结 0 1317
予麋鹿
予麋鹿 2020-12-23 02:15

Something like this ideally:

forms.py

class SelectCar(Form):
    def __init__(self, custom_queryset):
        choices = custom_queryset
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题