elo80ka / django-dynamic-formset

A jQuery plugin that allows you dynamically add new forms to a rendered django formset.
677 stars 311 forks source link

delete checkbox not display #148

Closed dimkoug closed 4 years ago

dimkoug commented 6 years ago

i have a formset with can_delete=True but when i render it, it dosen't display the checkbox button

in html $('.businessextra_formset_row').formset({ addText: 'ΠΡΟΣΘΗΚΗ ΤΙΜΗΣ', deleteText: 'remove', prefix: '{{ businessextra_formset.prefix }}' });

my formset partial

{{ formset.management_form }} {% for form in formset.forms %} {% for field in form.visible_fields %} {% endfor %} {% endfor %}
{# Include the hidden fields in the form #} {% if forloop.first %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {% endif %} {{ field.errors.as_ul }} {{ field }} {% if form.can_delete %} {{ form.DELETE }} {% endif %}
matthewslaney commented 6 years ago

The checkbox isn't needed. The delete functionality is handled by the "remove" link.

dimkoug commented 6 years ago

ok thanks

shafay07 commented 4 years ago

@dimkoug could you please close the issue?