def get_plugin_instance(self, admin=None):
    "\n        Given a plugin instance (usually as a CMSPluginBase), this method\n        returns a tuple containing:\n\n            instance - The instance AS THE APPROPRIATE SUBCLASS OF\n                       CMSPluginBase and not necessarily just 'self', which is\n                       often just a CMSPluginBase,\n\n            plugin   - the associated plugin class instance (subclass\n                       of CMSPlugin)\n        "
    plugin = self.get_plugin_class_instance(admin)
    if hasattr(self, '_inst'):
        return (self._inst, plugin)
    if (plugin.model != self.__class__):
        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
returns a tuple containing:

    instance - The instance AS THE APPROPRIATE SUBCLASS OF
               CMSPluginBase and not necessarily just 'self', which is
               often just a CMSPluginBase,

    plugin   - the associated plugin class instance (subclass
               of CMSPlugin)
def get_plugin_instance(self, admin=None):
    "\n        Given a plugin instance (usually as a CMSPluginBase), this method\n        returns a tuple containing:\n\n            instance - The instance AS THE APPROPRIATE SUBCLASS OF\n                       CMSPluginBase and not necessarily just 'self', which is\n                       often just a CMSPluginBase,\n\n            plugin   - the associated plugin class instance (subclass\n                       of CMSPlugin)\n        "
    plugin = self.get_plugin_class_instance(admin)
    if hasattr(self, '_inst'):
        return (self._inst, plugin)
    if (plugin.model != self.__class__):
        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)