git-svn-id: http://code.djangoproject.com/svn/django/trunk@16300 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
0994416d3f
commit
caefdc8246
|
@ -26,7 +26,7 @@ Quickstart
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
Running the tests requires a Django settings module that defines the
|
Running the tests requires a Django settings module that defines the
|
||||||
databases to use. To make it easy to get started. Django provides a
|
databases to use. To make it easy to get started, Django provides a
|
||||||
sample settings module that uses the SQLite database. To run the tests
|
sample settings module that uses the SQLite database. To run the tests
|
||||||
with this sample ``settings`` module, ``cd`` into the Django
|
with this sample ``settings`` module, ``cd`` into the Django
|
||||||
``tests/`` directory and run:
|
``tests/`` directory and run:
|
||||||
|
|
|
@ -431,7 +431,7 @@ FormMixin
|
||||||
|
|
||||||
.. method:: get_form_kwargs()
|
.. method:: get_form_kwargs()
|
||||||
|
|
||||||
Build the keyword arguments requried to instanciate an the form.
|
Build the keyword arguments required to instantiate the form.
|
||||||
|
|
||||||
The ``initial`` argument is set to :meth:`.get_initial`. If the
|
The ``initial`` argument is set to :meth:`.get_initial`. If the
|
||||||
request is a ``POST`` or ``PUT``, the request data (``request.POST``
|
request is a ``POST`` or ``PUT``, the request data (``request.POST``
|
||||||
|
|
|
@ -38,7 +38,7 @@ There are three steps involved in validating a model:
|
||||||
2. Validate the model as a whole
|
2. Validate the model as a whole
|
||||||
3. Validate the field uniqueness
|
3. Validate the field uniqueness
|
||||||
|
|
||||||
All three steps are performed when you call by a model's
|
All three steps are performed when you call a model's
|
||||||
``full_clean()`` method.
|
``full_clean()`` method.
|
||||||
|
|
||||||
When you use a ``ModelForm``, the call to ``is_valid()`` will perform
|
When you use a ``ModelForm``, the call to ``is_valid()`` will perform
|
||||||
|
|
Loading…
Reference in New Issue