Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

_get_FIELD_filename. Thanks to tom@jerakeen.org for the patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@2947 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e57e06d40bc68c5eb182035d1c90e8f6184b374d 1 parent 816b65f
Malcolm Tredinnick malcolmt authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/db/models/base.py
6 django/db/models/base.py
View
@@ -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" % field.name
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)
Please sign in to comment.
Something went wrong with that request. Please try again.