浏览代码

Fixed #29107 -- Doc'd that ModelForm doesn't actually inherit from Form.

Tim Graham 7 年之前
父节点
当前提交
ff61a25081
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      docs/topics/forms/index.txt

+ 5 - 3
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 </topics/forms/modelforms>`, 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