Skip to content

Commit

Permalink
Added a missing deprecated property (UploadedFile.filename) from [785…
Browse files Browse the repository at this point in the history
…9]. Refs #7614.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7860 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jacobian committed Jul 7, 2008
1 parent a28b75b commit c83e9ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/core/files/uploadedfile.py
Expand Up @@ -93,6 +93,7 @@ def chunks(self, chunk_size=None):
counter -= chunk_size counter -= chunk_size


# Deprecated properties # Deprecated properties
filename = deprecated_property(old="filename", new="name")
file_name = deprecated_property(old="file_name", new="name") file_name = deprecated_property(old="file_name", new="name")
file_size = deprecated_property(old="file_size", new="size") file_size = deprecated_property(old="file_size", new="size")
data = deprecated_property(old="data", new="read", readonly=True) data = deprecated_property(old="data", new="read", readonly=True)
Expand Down

0 comments on commit c83e9ab

Please sign in to comment.