mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
[3.0.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
71489a522a
commit
56061decff
1 changed files with 6 additions and 0 deletions
|
@ -788,6 +788,12 @@ with the ``Author`` model. It works just like a regular formset::
|
|||
means that a model formset is an extension of a basic formset that 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
|
||||
---------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue