Ticket #9027: mf_f-can-delete.diff

File mf_f-can-delete.diff, 626 bytes (added by Gabriel Farrell, 16 years ago)

modelformset_factory can_delete patch

  • django/forms/models.py

     
    419419
    420420def modelformset_factory(model, form=ModelForm, formfield_callback=lambda f: f.formfield(),
    421421                         formset=BaseModelFormSet,
    422                          extra=1, can_delete=False, can_order=False,
     422                         extra=1, can_delete=True, can_order=False,
    423423                         max_num=0, fields=None, exclude=None):
    424424    """
    425425    Returns a FormSet class for the given Django model class.
Back to Top