Fixed #5346 -- Fixed a couple typos in the model-api docs. Thanks, David Paccoud.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6069 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b0e173ae3f
commit
a047f6a8fe
|
@ -308,7 +308,7 @@ on the filesystem. Has three special arguments, of which the first is
|
||||||
``FilePathField`` will use to filter filenames.
|
``FilePathField`` will use to filter filenames.
|
||||||
Note that the regex will be applied to the
|
Note that the regex will be applied to the
|
||||||
base filename, not the full path. Example:
|
base filename, not the full path. Example:
|
||||||
``"foo.*\.txt^"``, which will match a file called
|
``"foo.*\.txt$"``, which will match a file called
|
||||||
``foo23.txt`` but not ``bar.txt`` or ``foo23.gif``.
|
``foo23.txt`` but not ``bar.txt`` or ``foo23.gif``.
|
||||||
|
|
||||||
``recursive`` Optional. Either ``True`` or ``False``. Default is
|
``recursive`` Optional. Either ``True`` or ``False``. Default is
|
||||||
|
@ -1903,7 +1903,7 @@ as the value displayed to render an object in the Django admin site and as the
|
||||||
value inserted into a template when it displays an object. Thus, you should
|
value inserted into a template when it displays an object. Thus, you should
|
||||||
always return a nice, human-readable string for the object's ``__str__``.
|
always return a nice, human-readable string for the object's ``__str__``.
|
||||||
Although this isn't required, it's strongly encouraged (see the description of
|
Although this isn't required, it's strongly encouraged (see the description of
|
||||||
``__unicode__``, below, before putting ``_str__`` methods everywhere).
|
``__unicode__``, below, before putting ``__str__`` methods everywhere).
|
||||||
|
|
||||||
For example::
|
For example::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue