From ff61a250815d32ff185501a5afef0245fec7d878 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Thu, 8 Feb 2018 10:10:28 -0500 Subject: [PATCH] Fixed #29107 -- Doc'd that ModelForm doesn't actually inherit from Form. --- docs/topics/forms/index.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt index 71d5a37ed9..173bcb1942 100644 --- a/docs/topics/forms/index.txt +++ b/docs/topics/forms/index.txt @@ -370,9 +370,11 @@ ready to learn a bit more about the underlying machinery. More about Django :class:`Form` classes ======================================= -All form classes are created as subclasses of :class:`django.forms.Form`, -including the :doc:`ModelForm `, which you encounter -in Django's admin. +All form classes are created as subclasses of either :class:`django.forms.Form` +or :class:`django.forms.ModelForm`. You can think of ``ModelForm`` as a +subclass of ``Form``. ``Form`` and ``ModelForm`` actually inherit common +functionality from a (private) ``BaseForm`` class, but this implementation +detail is rarely important. .. admonition:: Models and Forms