| | 832 | .. highlight:: html+django |
| | 833 | |
| | 834 | If you manually render fields in the template, you can render |
| | 835 | ``can_delete`` parameter with ``{{ form.DELETE }}``:: |
| | 836 | |
| | 837 | <form method="post" action=""> |
| | 838 | {{ formset.management_form }} |
| | 839 | {% for form in formset %} |
| | 840 | {{ form.id }} |
| | 841 | <ul> |
| | 842 | <li>{{ form.title }}</li> |
| | 843 | {% if formset.can_delete %} |
| | 844 | <li>{{ form.DELETE }}</li> |
| | 845 | {% enif %} |
| | 846 | </ul> |
| | 847 | {% endfor %} |
| | 848 | </form> |
| | 849 | |
| | 850 | Similarly, if the formset has the ability to order (``can_order=True``), it is possible to render it |
| | 851 | with ``{{ form.ORDER }}``. |
| | 852 | |
| | 853 | .. highlight:: python |
| | 854 | |