Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Fixed #1901 -- removed typos from calls to _get_image_dimensions and

_get_FIELD_filename. Thanks to for the patch.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 816b65f commit e57e06d40bc68c5eb182035d1c90e8f6184b374d @malcolmt malcolmt committed
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/db/models/
6 django/db/models/
@@ -341,16 +341,16 @@ def _save_FIELD_file(self, field, filename, raw_contents):
_save_FIELD_file.alters_data = True
def _get_FIELD_width(self, field):
- return self.__get_image_dimensions(field)[0]
+ return self._get_image_dimensions(field)[0]
def _get_FIELD_height(self, field):
- return self.__get_image_dimensions(field)[1]
+ return self._get_image_dimensions(field)[1]
def _get_image_dimensions(self, field):
cachename = "__%s_dimensions_cache" %
if not hasattr(self, cachename):
from django.utils.images import get_image_dimensions
- filename = self.__get_FIELD_filename(field)()
+ filename = self._get_FIELD_filename(field)()
setattr(self, cachename, get_image_dimensions(filename))
return getattr(self, cachename)

0 comments on commit e57e06d

Please sign in to comment.
Something went wrong with that request. Please try again.