summaryrefslogtreecommitdiff
path: root/docs/topics/files.txt
diff options
context:
space:
mode:
authorMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-29 05:15:49 +0000
committerMalcolm Tredinnick <malcolm.tredinnick@gmail.com>2008-08-29 05:15:49 +0000
commit6ebbf7ac96b29bb9d2d3b4de07991a17d199161b (patch)
treeeda85ab379bdf6ed82f6f7f7c866b8236a8add76 /docs/topics/files.txt
parent2dba41056fab71c4b0a111df77b8a51c1a4ca993 (diff)
Fixed #8638 -- Show by example that the File.name attribute includes the upload
directory as well as the filename. Patch from Ramiro Morales. git-svn-id: http://code.djangoproject.com/svn/django/trunk@8695 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/topics/files.txt')
-rw-r--r--docs/topics/files.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/files.txt b/docs/topics/files.txt
index 662110111a..dabee7dacb 100644
--- a/docs/topics/files.txt
+++ b/docs/topics/files.txt
@@ -39,7 +39,7 @@ the details of the attached photo::
>>> car.photo
<ImageFieldFile: chevy.jpg>
>>> car.photo.name
- u'chevy.jpg'
+ u'cars/chevy.jpg'
>>> car.photo.path
u'/media/cars/chevy.jpg'
>>> car.photo.url
@@ -143,4 +143,4 @@ For example, the following code will store uploaded files under
photo = models.ImageField(storage=fs)
:ref:`Custom storage systems <howto-custom-file-storage>` work the same way: you
-can pass them in as the ``storage`` argument to a ``FileField``. \ No newline at end of file
+can pass them in as the ``storage`` argument to a ``FileField``.