Fixed #10779 -- Corrected description of an example in the files docs. Thanks to timo for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10567 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
565c190611
commit
9103a9bd6c
|
@ -25,7 +25,7 @@ When you use a :class:`~django.db.models.FileField` or
|
||||||
:class:`~django.db.models.ImageField`, Django provides a set of APIs you can use
|
:class:`~django.db.models.ImageField`, Django provides a set of APIs you can use
|
||||||
to deal with that file.
|
to deal with that file.
|
||||||
|
|
||||||
Consider the following model, using a ``FileField`` to store a photo::
|
Consider the following model, using an ``ImageField`` to store a photo::
|
||||||
|
|
||||||
class Car(models.Model):
|
class Car(models.Model):
|
||||||
name = models.CharField(max_length=255)
|
name = models.CharField(max_length=255)
|
||||||
|
@ -111,7 +111,7 @@ useful -- you can use the global default storage system::
|
||||||
>>> default_storage.exists(path)
|
>>> default_storage.exists(path)
|
||||||
False
|
False
|
||||||
|
|
||||||
See :ref:`ref-files-storage` for the file storage API.
|
See :ref:`ref-files-storage` for the file storage API.
|
||||||
|
|
||||||
The built-in filesystem storage class
|
The built-in filesystem storage class
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue