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:54:45 +0200 |
| commit | 56061decff6bc5cead3d05a551af7810d6f30da0 (patch) | |
| tree | 04dc28c57bfd56db553f7d15f7f729ad127f80e5 | |
| parent | 71489a522a2d8d8aec57de82b94a2ab2048479f2 (diff) | |
[3.0.x] Fixed #11097 -- Added note about parent link fields in formsets for multi-table inheritance models.
Backport of 0b7378db1fdd7bfc7b78089811b3abb722c4ba95 from master
| -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 56ab59fda2..8f49dd989b 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -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 --------------------- |
