(self, request=None)
Render the plugin HTML (for dashboard workspace).

        :param django.http.HttpRequest request:
        :return string:
Render the plugin HTML (for dashboard workspace).
Render the plugin HTML ( for dashboard workspace ) .
def render(self, request=None):
        """Render the plugin HTML (for dashboard workspace).

        :param django.http.HttpRequest request:
        :return string:
        """
        widget_cls = self.get_widget()

        if widget_cls:
            widget = widget_cls(self)

            render = widget.render(request=request)
            return render or ''
        elif DEBUG:
            logger.debug(
                "No widget defined for {0}.{1}.{2}".format(
                    self.layout.uid,
                    self.placeholder.uid,
                    self.uid
                )
            )
def render ( self , request = None ) : widget_cls = self . get_widget ( ) if widget_cls : widget = widget_cls ( self ) render = widget . render ( request = request ) return render or '' elif DEBUG : logger . debug ( "No widget defined for {0}.{1}.{2}" . format ( self . layout . uid , self . placeholder . uid , self . uid ) )