mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #9061 -- Allowed GenericInlineFormSet to disable deleting extra forms.
Follow up to 162765d6c3
.
This commit is contained in:
parent
3254991762
commit
35b03788b0
4 changed files with 33 additions and 4 deletions
|
@ -466,7 +466,7 @@ The :mod:`django.contrib.contenttypes.forms` module provides:
|
|||
|
||||
.. class:: BaseGenericInlineFormSet
|
||||
|
||||
.. function:: generic_inlineformset_factory(model, form=ModelForm, formset=BaseGenericInlineFormSet, ct_field="content_type", fk_field="object_id", fields=None, exclude=None, extra=3, can_order=False, can_delete=True, max_num=None, formfield_callback=None, validate_max=False, for_concrete_model=True, min_num=None, validate_min=False, absolute_max=None)
|
||||
.. function:: generic_inlineformset_factory(model, form=ModelForm, formset=BaseGenericInlineFormSet, ct_field="content_type", fk_field="object_id", fields=None, exclude=None, extra=3, can_order=False, can_delete=True, max_num=None, formfield_callback=None, validate_max=False, for_concrete_model=True, min_num=None, validate_min=False, absolute_max=None, can_delete_extra=True)
|
||||
|
||||
Returns a ``GenericInlineFormSet`` using
|
||||
:func:`~django.forms.models.modelformset_factory`.
|
||||
|
@ -483,7 +483,7 @@ The :mod:`django.contrib.contenttypes.forms` module provides:
|
|||
|
||||
.. versionchanged:: 3.2
|
||||
|
||||
The ``absolute_max`` argument was added.
|
||||
The ``absolute_max`` and ``can_delete_extra`` arguments were added.
|
||||
|
||||
.. module:: django.contrib.contenttypes.admin
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue