code: def contribute_to_class(self, cls, name):
          
          super(SizedImageField, self).contribute_to_class(cls, name)
          signals.post_init.connect(self._set_thumbnail, sender=cls)
docs: Makes sure thumbnail gets set when image field initialized.