Ticket #1026: fix.patch
File fix.patch, 740 bytes (added by , 19 years ago) |
---|
-
django/core/meta/__init__.py
1303 1303 from django.utils.images import get_image_dimensions 1304 1304 width, height = get_image_dimensions(getattr(self, 'get_%s_filename' % field.name)()) 1305 1305 if field.width_field: 1306 setattr(self, field.width_field, width)1306 setattr(self, '%s.width_field' % field, width) 1307 1307 if field.height_field: 1308 setattr(self, field.height_field, height)1308 setattr(self, '%s.height_field' % field, height) 1309 1309 1310 1310 # Save the object, because it has changed. 1311 1311 self.save()