开发者

Django - Customising the display of FormSet objects?

I have a formset with can_delete set, i.e. I want to allow people to be able to delete the objects. I want to customise the layout of each of the forms, like this: http://docs.djangoproject.com/en/dev/topics/forms/#customizing-the-form-template . I can add the fields for each form with {{ form.name_of_field }}, etc. However I'm not sure what to put (in the template) for the 'delete' checkbox. This field comes 开发者_如何学JAVAup normally when you go {{ form.as_ul }}.

What's the value for the delete field?


{{ form.DELETE }}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜