[2.2.x] Fixed #11097 -- Added note about parent link fields in formsets for multi-table inheritance models.
Backport of 0b7378db1f
from master
This commit is contained in:
parent
9763ed7a66
commit
8c1b492e5f
|
@ -787,6 +787,12 @@ with the ``Author`` model. It works just like a regular formset::
|
||||||
means that a model formset is just an extension of a basic formset that
|
means that a model formset is just an extension of a basic formset that
|
||||||
knows how to interact with a particular model.
|
knows how to interact with a particular model.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
|
||||||
|
When using :ref:`multi-table inheritance <multi-table-inheritance>`, forms
|
||||||
|
generated by a formset factory will contain a parent link field (by default
|
||||||
|
``<parent_model_name>_ptr``) instead of an ``id`` field.
|
||||||
|
|
||||||
Changing the queryset
|
Changing the queryset
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue