diff options
| author | Mac Chapman <mac@veryhappythings.co.uk> | 2019-10-08 14:07:17 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-10-09 12:55:23 +0200 |
| commit | 8c1b492e5fde8d1b8c08e5775eee12f5d671a553 (patch) | |
| tree | 5ea1c79650cbadaad4003b1f68d7441dcfe8970b /docs/topics/forms/modelforms.txt | |
| parent | 9763ed7a668c865100fca214a34923faeeb5da93 (diff) | |
[2.2.x] Fixed #11097 -- Added note about parent link fields in formsets for multi-table inheritance models.
Backport of 0b7378db1fdd7bfc7b78089811b3abb722c4ba95 from master
Diffstat (limited to 'docs/topics/forms/modelforms.txt')
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 2a13c2d1df..12828cfab5 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -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 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 --------------------- |
