From e57e06d40bc68c5eb182035d1c90e8f6184b374d Mon Sep 17 00:00:00 2001 From: Malcolm Tredinnick Date: Fri, 19 May 2006 09:41:40 +0000 Subject: [PATCH] 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 --- django/db/models/base.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/django/db/models/base.py b/django/db/models/base.py index 88bed45c8a..08a81c9ab9 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -341,16 +341,16 @@ class Model(object): _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)