Fixed some ReST errors in docs/newforms.txt from [5212]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@5213 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6500f3fefa
commit
1130f5e6b7
|
@ -942,7 +942,8 @@ the full list of conversions:
|
||||||
``TimeField`` ``TimeField``
|
``TimeField`` ``TimeField``
|
||||||
``URLField`` ``URLField`` with ``verify_exists`` set
|
``URLField`` ``URLField`` with ``verify_exists`` set
|
||||||
to the model field's ``verify_exists``
|
to the model field's ``verify_exists``
|
||||||
``USStateField`` ``CharField with ``widget=USStateSelect``
|
``USStateField`` ``CharField`` with
|
||||||
|
``widget=USStateSelect``
|
||||||
(``USStateSelect`` is from
|
(``USStateSelect`` is from
|
||||||
``django.contrib.localflavor.us``)
|
``django.contrib.localflavor.us``)
|
||||||
``XMLField`` ``CharField`` with ``widget=Textarea``
|
``XMLField`` ``CharField`` with ``widget=Textarea``
|
||||||
|
@ -1094,7 +1095,7 @@ The default field types, as described in the "Field types" table above, are
|
||||||
sensible defaults; if you have a ``DateField`` in your model, chances are you'd
|
sensible defaults; if you have a ``DateField`` in your model, chances are you'd
|
||||||
want that to be represented as a ``DateField`` in your form. But
|
want that to be represented as a ``DateField`` in your form. But
|
||||||
``form_for_model()`` gives you the flexibility of changing the form field type
|
``form_for_model()`` gives you the flexibility of changing the form field type
|
||||||
for a given model field. You do this by specifying a *formfield callback*.
|
for a given model field. You do this by specifying a **formfield callback**.
|
||||||
|
|
||||||
A formfield callback is a function that, when provided with a model field,
|
A formfield callback is a function that, when provided with a model field,
|
||||||
returns a form field instance. When constructing a form, ``form_for_model()``
|
returns a form field instance. When constructing a form, ``form_for_model()``
|
||||||
|
|
Loading…
Reference in New Issue