1
0
mirror of https://github.com/django/django.git synced 2025-01-24 00:59:20 +00:00

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
This commit is contained in:
Jacob Kaplan-Moss 2008-07-07 23:36:35 +00:00
parent a28b75b0ba
commit c83e9abb34

View File

@ -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)