From c83e9abb34bca78e9d6d451614d00f816674e5a8 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 7 Jul 2008 23:36:35 +0000 Subject: [PATCH] Added a missing deprecated property (UploadedFile.filename) from [7859]. Refs #7614. git-svn-id: http://code.djangoproject.com/svn/django/trunk@7860 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/files/uploadedfile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/django/core/files/uploadedfile.py b/django/core/files/uploadedfile.py index c0c9473529..bf5848421d 100644 --- a/django/core/files/uploadedfile.py +++ b/django/core/files/uploadedfile.py @@ -93,6 +93,7 @@ class UploadedFile(object): counter -= chunk_size # Deprecated properties + filename = deprecated_property(old="filename", new="name") file_name = deprecated_property(old="file_name", new="name") file_size = deprecated_property(old="file_size", new="size") data = deprecated_property(old="data", new="read", readonly=True)