summaryrefslogtreecommitdiff
path: root/docs/ref/models
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-06-06 10:32:03 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-06-06 10:32:03 +0200
commit29a80354ab5e5b85fa37863f70b1cf95646dc699 (patch)
tree4dc78d685ef01a83f56638fcdb10f9b2ccce4bae /docs/ref/models
parent17824e2b74ca02b9914e853c818fa512a0f9ef34 (diff)
Added alt attribute to img tags in docs.
This is a good practice for accessibility. Thanks Jessica McKellar for the report.
Diffstat (limited to 'docs/ref/models')
-rw-r--r--docs/ref/models/fields.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index eab7ad91e1..86894effea 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -683,7 +683,7 @@ directory on the filesystem. Has three special arguments, of which the first is
Optional. A regular expression, as a string, that :class:`FilePathField`
will use to filter filenames. Note that the regex will be applied to the
base filename, not the full path. Example: ``"foo.*\.txt$"``, which will
- match a file called ``foo23.txt`` but not ``bar.txt`` or ``foo23.gif``.
+ match a file called ``foo23.txt`` but not ``bar.txt`` or ``foo23.png``.
.. attribute:: FilePathField.recursive
@@ -714,9 +714,9 @@ base filename, not the full path. So, this example::
FilePathField(path="/home/images", match="foo.*", recursive=True)
-...will match ``/home/images/foo.gif`` but not ``/home/images/foo/bar.gif``
+...will match ``/home/images/foo.png`` but not ``/home/images/foo/bar.png``
because the :attr:`~FilePathField.match` applies to the base filename
-(``foo.gif`` and ``bar.gif``).
+(``foo.png`` and ``bar.png``).
By default, :class:`FilePathField` instances are
created as ``varchar(100)`` columns in your database. As with other fields, you