开发者

python html form library that supports forms within form (form as a field )?

开发者 https://www.devze.com 2023-01-15 13:03 出处:网络
The question says it all, For example, In a contact book if someone has multiple addresses with each address having multiple fields I want to display an \"add another address\"开发者_JS百科 button.

The question says it all,

For example,

In a contact book if someone has multiple addresses with each address having multiple fields I want to display an "add another address"开发者_JS百科 button. This button would add another address form. (I want one round trip to the server, I do not want javascript or webforms2.)

It would be nice if some built in library would support this. Examples are appreciated.

Thanks.


Try django-formsets, and if you want dynamic behavior use this http://code.google.com/p/django-dynamic-formset/

0

精彩评论

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