diff options
| author | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-07-12 20:43:52 +0000 |
|---|---|---|
| committer | Jacob Kaplan-Moss <jacob@jacobian.org> | 2008-07-12 20:43:52 +0000 |
| commit | 476d5f2c0d6e3141fa7429a904efb5721493bbdf (patch) | |
| tree | 98394162bd97cbc54b6176092f8475c530c16a0f | |
| parent | e63f8bf65571d07c02725a4c86036be11e949916 (diff) | |
Fixed #7675: corrected TemporaryUploadedFile.temporary_file_path. Thanks, Florian Apolloner.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7908 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | AUTHORS | 2 | ||||
| -rw-r--r-- | django/core/files/uploadedfile.py | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -52,7 +52,7 @@ answer newbie questions, and generally made Django that much better: andy@jadedplanet.net Fabrice Aneche <akh@nobugware.com> ant9000@netwise.it - Florian Apolloner + Florian Apolloner <florian@apolloner.eu> arien <regexbot@gmail.com> David Ascher <http://ascher.ca/> Jökull Sólberg Auðunsson <jokullsolberg@gmail.com> diff --git a/django/core/files/uploadedfile.py b/django/core/files/uploadedfile.py index 9287a1bec8..7f515f94d4 100644 --- a/django/core/files/uploadedfile.py +++ b/django/core/files/uploadedfile.py @@ -193,7 +193,7 @@ class TemporaryUploadedFile(UploadedFile): """ Returns the full path of this file. """ - return self.name + return self._file.name # Most methods on this object get proxied to NamedTemporaryFile. # We can't directly subclass because NamedTemporaryFile is actually a |
