summaryrefslogtreecommitdiff
path: root/docs/topics/forms
diff options
context:
space:
mode:
authorGabriel Hurley <gabehr@gmail.com>2010-10-23 22:07:33 +0000
committerGabriel Hurley <gabehr@gmail.com>2010-10-23 22:07:33 +0000
commitf0416f693fa54b1a46e0db437970fcda73a5d77f (patch)
tree6e7e63b7948b004d57d6b3bf3f173fe28da8a9a7 /docs/topics/forms
parent2380a469d71d0f6d251a058b0ce6c7f71857251b (diff)
[1.2.X] 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.
Backport of [14331] from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@14332 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``