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
This commit is contained in:
Adrian Holovaty 2005-12-12 01:54:02 +00:00
parent 1926ff4b31
commit 99431aae66
1 changed files with 2 additions and 2 deletions

View File

@ -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)