Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 6ebbf7ac96b29bb9d2d3b4de07991a17d199161b 1 parent 2dba410
Malcolm Tredinnick authored August 29, 2008

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/topics/files.txt
4  docs/topics/files.txt
@@ -39,7 +39,7 @@ the details of the attached photo::
39 39
     >>> car.photo
40 40
     <ImageFieldFile: chevy.jpg>
41 41
     >>> car.photo.name
42  
-    u'chevy.jpg'
  42
+    u'cars/chevy.jpg'
43 43
     >>> car.photo.path
44 44
     u'/media/cars/chevy.jpg'
45 45
     >>> car.photo.url
@@ -143,4 +143,4 @@ For example, the following code will store uploaded files under
143 143
         photo = models.ImageField(storage=fs)
144 144
 
145 145
 :ref:`Custom storage systems <howto-custom-file-storage>` work the same way: you
146  
-can pass them in as the ``storage`` argument to a ``FileField``.
  146
+can pass them in as the ``storage`` argument to a ``FileField``.

0 notes on commit 6ebbf7a

Please sign in to comment.
Something went wrong with that request. Please try again.