mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Refs #20347 -- Allowed customizing the maximum number of instantiated forms in generic_inlineformset_factory().
Follow up to 433dd737f9
.
This commit is contained in:
parent
13704b057d
commit
3254991762
4 changed files with 46 additions and 3 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)
|
||||
.. 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)
|
||||
|
||||
Returns a ``GenericInlineFormSet`` using
|
||||
:func:`~django.forms.models.modelformset_factory`.
|
||||
|
@ -481,6 +481,10 @@ The :mod:`django.contrib.contenttypes.forms` module provides:
|
|||
:class:`~django.contrib.contenttypes.fields.GenericForeignKey.for_concrete_model`
|
||||
argument on ``GenericForeignKey``.
|
||||
|
||||
.. versionchanged:: 3.2
|
||||
|
||||
The ``absolute_max`` argument was added.
|
||||
|
||||
.. module:: django.contrib.contenttypes.admin
|
||||
|
||||
Generic relations in admin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue