mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #12346 -- Added a note on how to validate InlineFormSets.
Thanks johnsmith for the suggestion.
This commit is contained in:
parent
9383e37a76
commit
181f63c22d
3 changed files with 22 additions and 10 deletions
|
@ -1713,9 +1713,9 @@ The ``InlineModelAdmin`` class adds:
|
|||
|
||||
.. attribute:: InlineModelAdmin.formset
|
||||
|
||||
This defaults to ``BaseInlineFormSet``. Using your own formset can give you
|
||||
many possibilities of customization. Inlines are built around
|
||||
:ref:`model formsets <model-formsets>`.
|
||||
This defaults to :class:`~django.forms.models.BaseInlineFormSet`. Using
|
||||
your own formset can give you many possibilities of customization. Inlines
|
||||
are built around :ref:`model formsets <model-formsets>`.
|
||||
|
||||
.. attribute:: InlineModelAdmin.form
|
||||
|
||||
|
@ -1791,8 +1791,9 @@ The ``InlineModelAdmin`` class adds:
|
|||
|
||||
.. method:: InlineModelAdmin.get_formset(self, request, obj=None, **kwargs)
|
||||
|
||||
Returns a ``BaseInlineFormSet`` class for use in admin add/change views.
|
||||
See the example for :class:`ModelAdmin.get_formsets`.
|
||||
Returns a :class:`~django.forms.models.BaseInlineFormSet` class for use in
|
||||
admin add/change views. See the example for
|
||||
:class:`ModelAdmin.get_formsets`.
|
||||
|
||||
.. method:: InlineModelAdmin.get_extra(self, request, obj=None, **kwargs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue