mirror of https://github.com/django/django.git
Fixed #10989 -- Fixed typos in formset and widget-media docs. Thanks, falken@mixworx.net and ramiro
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12168 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
516947fd61
commit
9e3dbc7573
|
@ -145,7 +145,7 @@ in this form as well.
|
||||||
``total_form_count`` and ``initial_form_count``
|
``total_form_count`` and ``initial_form_count``
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
``BaseModelFormSet`` has a couple of methods that are closely related to the
|
``BaseFormSet`` has a couple of methods that are closely related to the
|
||||||
``ManagementForm``, ``total_form_count`` and ``initial_form_count``.
|
``ManagementForm``, ``total_form_count`` and ``initial_form_count``.
|
||||||
|
|
||||||
``total_form_count`` returns the total number of forms in this formset.
|
``total_form_count`` returns the total number of forms in this formset.
|
||||||
|
|
|
@ -176,7 +176,7 @@ Media as a dynamic property
|
||||||
|
|
||||||
If you need to perform some more sophisticated manipulation of media
|
If you need to perform some more sophisticated manipulation of media
|
||||||
requirements, you can define the media property directly. This is done
|
requirements, you can define the media property directly. This is done
|
||||||
by defining a model property that returns an instance of ``forms.Media``.
|
by defining a widget property that returns an instance of ``forms.Media``.
|
||||||
The constructor for ``forms.Media`` accepts ``css`` and ``js`` keyword
|
The constructor for ``forms.Media`` accepts ``css`` and ``js`` keyword
|
||||||
arguments in the same format as that used in a static media definition.
|
arguments in the same format as that used in a static media definition.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue