Auto-generate form fields for a Form in django

后端 未结 3 1584
温柔的废话
温柔的废话 2020-12-28 22:14

I have some models and I want to generate a multi-selection form from this data. So the form would contain an entry for each category and the choices would be the skills in

3条回答
  •  独厮守ぢ
    2020-12-28 22:32

    Take a look at creating dynamic forms in Django, from b-list.org and uswaretech.com. I've had success using these examples to dynamically create form content from models.

提交回复
热议问题