Amandasaurus
Amandasaurus

Reputation: 60669

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 up normally when you go {{ form.as_ul }}.

What's the value for the delete field?

Upvotes: 0

Views: 1234

Answers (1)

Harold
Harold

Reputation: 5325

{{ form.DELETE }}

Upvotes: 4

Related Questions