开发者

Passing a sequence of the same form? - Django

the user needs to provide a list of field/values through a form

class FieldForm(forms.Form):

    field_name = forms.CharField()
    field_value = forms.CharField()

The problem is how do I ge开发者_如何学Ct a user to pass multiple of these with one submit?


Also as a side question... any tips on implementing editing too?


Any ideas? It would be really great to get your feedback! :)


Sounds like formsets are what you are after.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜