Author: mtredinnick
Date: 2008-08-29 00:15:49 -0500 (Fri, 29 Aug 2008)
New Revision: 8695
Modified:
django/trunk/docs/topics/files.txt
Log:
Fixed #8638 -- Show by example that the File.name attribute includes the upload
directory as well as the filename. Patch from Ramiro Morales.
Modified: django/trunk/docs/topics/files.txt
===================================================================
--- django/trunk/docs/topics/files.txt 2008-08-29 05:04:26 UTC (rev 8694)
+++ django/trunk/docs/topics/files.txt 2008-08-29 05:15:49 UTC (rev 8695)
@@ -39,7 +39,7 @@
>>> 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 @@
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``.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---