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
This commit is contained in:
Gabriel Hurley 2010-10-23 22:06:01 +00:00
parent e18f8b1d22
commit d371142001
2 changed files with 64 additions and 52 deletions

View file

@ -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``