Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
寻找一种方法来指示 Django 的 autocomplete_light 表单字段的字符串标签,由于某种原因,我在文档中找不到它。
所以答案很简单。我不知道如何在 autocomplete_light 类本身中做到这一点,但这是一个完全合适的解决方案:
zip = autocomplete_light.ChoiceField('ZipAutocomplete',label='')