From 476d5f2c0d6e3141fa7429a904efb5721493bbdf Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Sat, 12 Jul 2008 20:43:52 +0000 Subject: [PATCH] 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 --- AUTHORS | 2 +- django/core/files/uploadedfile.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 7e91eda833..4212bb9a2f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -52,7 +52,7 @@ answer newbie questions, and generally made Django that much better: andy@jadedplanet.net Fabrice Aneche ant9000@netwise.it - Florian Apolloner + Florian Apolloner arien David Ascher Jökull Sólberg Auðunsson 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