summaryrefslogtreecommitdiff
path: root/docs/topics/forms
diff options
context:
space:
mode:
authorGabriel Hurley <gabehr@gmail.com>2010-10-23 22:06:01 +0000
committerGabriel Hurley <gabehr@gmail.com>2010-10-23 22:06:01 +0000
commitd37114200115163e34c6618291ea9d29938ff4a3 (patch)
treec1087bb51ceb9e7aa2f86542b847775d62a277cc /docs/topics/forms
parente18f8b1d22402dc9e55263360f8875e16af1ab64 (diff)
Fixed #14537 -- Added documentation on where validators can be imported from to Validators Reference docs, and improved Sphinx formatting and metadata. Thanks to rfugger for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14331 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/forms')
-rw-r--r--docs/topics/forms/modelforms.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt
index 203639db77..65bc0ea2ea 100644
--- a/docs/topics/forms/modelforms.txt
+++ b/docs/topics/forms/modelforms.txt
@@ -2,8 +2,14 @@
Creating forms from models
==========================
+.. module:: django.forms.models
+ :synopsis: ModelForm and ModelFormset.
+
+.. currentmodule:: django.forms
+
``ModelForm``
=============
+.. class:: ModelForm
If you're building a database-driven app, chances are you'll have forms that
map closely to Django models. For instance, you might have a ``BlogComment``