def __init__(self, *args, **kwargs):
        try:
            self.base_fields['image_file'].initial = kwargs['instance'].image.pk
        except (__HOLE__, KeyError):
            self.base_fields['image_file'].initial = None
        self.base_fields['image_file'].widget = AdminFileWidget(ManyToOneRel(FilerImageField, Image, 'file_ptr'), site)
        super(ImageFormMixin, self).__init__(*args, **kwargs)
dataset/ETHPy150Open jrief/djangocms-cascade/cmsplugin_cascade/bootstrap3/image.py/ImageFormMixin.__init__