Ticket #1026: fix.patch

File fix.patch, 740 bytes (added by leo@…, 19 years ago)
  • django/core/meta/__init__.py

     
    13031303        from django.utils.images import get_image_dimensions
    13041304        width, height = get_image_dimensions(getattr(self, 'get_%s_filename' % field.name)())
    13051305        if field.width_field:
    1306             setattr(self, field.width_field, width)
     1306            setattr(self, '%s.width_field' % field, width)
    13071307        if field.height_field:
    1308             setattr(self, field.height_field, height)
     1308            setattr(self, '%s.height_field' % field, height)
    13091309
    13101310    # Save the object, because it has changed.
    13111311    self.save()
Back to Top