def formfield(self, **kwargs):
        if 'widget' in kwargs or isinstance(
                kwargs['widget'], ForeignKeyRawIdWidget):
            kwargs['widget'] = MediaFileForeignKeyRawIdWidget(kwargs['widget'])
        return super(MediaFileForeignKey, self).formfield(**kwargs)
dataset/ETHPy150Open feincms/feincms/feincms/module/medialibrary/fields.py/MediaFileForeignKey.formfield/operator `and` -> `or`