From 99431aae664a245cc8365571b19e35db063a9fda Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Mon, 12 Dec 2005 01:54:02 +0000 Subject: [PATCH] magic-removal: Fixed bug in [1598] -- get_image_width and get_image_height methods weren't being assigned correctly git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1599 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/core/meta/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/core/meta/__init__.py b/django/core/meta/__init__.py index bf73610ad1..e5c44e186c 100644 --- a/django/core/meta/__init__.py +++ b/django/core/meta/__init__.py @@ -924,9 +924,9 @@ class Model: # if the image field doesn't have width and height cache # fields. if not f.width_field: - setattr(cls, 'get_%s_width' % f.name, curry(method_get_image_width, f)) + setattr(cls, 'get_%s_width' % f.name, curry(cls.__get_FIELD_width, f)) if not f.height_field: - setattr(cls, 'get_%s_height' % f.name, curry(method_get_image_height, f)) + setattr(cls, 'get_%s_height' % f.name, curry(cls.__get_FIELD_height, f)) if cls._meta.order_with_respect_to: cls.get_next_in_order = curry(cls.__get_next_or_previous_in_order, True) cls.get_previous_in_order = curry(cls.__get_next_or_previous_in_order, False)