From 0b7378db1fdd7bfc7b78089811b3abb722c4ba95 Mon Sep 17 00:00:00 2001 From: Mac Chapman Date: Tue, 8 Oct 2019 14:07:17 +0100 Subject: [PATCH] Fixed #11097 -- Added note about parent link fields in formsets for multi-table inheritance models. --- docs/topics/forms/modelforms.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index 56ab59fda25..8f49dd989b5 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 `, forms + generated by a formset factory will contain a parent link field (by default + ``_ptr``) instead of an ``id`` field. + Changing the queryset ---------------------