def get_plugin_instance(self, admin=None):
        plugin = self.get_plugin_class_instance(admin)
        if hasattr(self, "_inst"):
            return self._inst, plugin
        if plugin.model != self.__class__:  # and self.__class__ == CMSPlugin:
            # (if self is actually a subclass, getattr below would break)
            try:
                instance = plugin.model.objects.get(cmsplugin_ptr=self)
                instance._render_meta = self._render_meta
            except (AttributeError, ObjectDoesNotExist):
                instance = None
        else:
            instance = self
        self._inst = instance
        return self._inst, plugin
Given a plugin instance (usually as a CMSPluginBase), this method
dataset/ETHPy150Open divio/django-cms/cms/models/pluginmodel.py/CMSPlugin.get_plugin_instance