Ticket #961: meta.diff
File meta.diff, 742 bytes (added by , 19 years ago) |
---|
-
../django/django/core/meta/__init__.py
835 835 setattr(new_class, 'get_%s_width' % f.name, curry(method_get_image_width, f)) 836 836 if not f.height_field: 837 837 setattr(new_class, 'get_%s_height' % f.name, curry(method_get_image_height, f)) 838 839 if hasattr(f, '_field_setup'): 840 getattr(f, '_field_setup')(new_class, f) 838 841 839 842 # Add the class itself to the new module we've created. 840 843 new_mod.__dict__[name] = new_class