@filter_hook
def get_media(self):
    media = (super(Dashboard, self).get_media() + self.vendor('xadmin.page.dashboard.js', 'xadmin.page.dashboard.css'))
    if self.widget_customiz:
        media = (media + self.vendor('xadmin.plugin.portal.js'))
    for ws in self.widgets:
        for widget in ws:
            media = (media + widget.media())
    return media
@filter_hook
def get_media(self):
    media = (super(Dashboard, self).get_media() + self.vendor('xadmin.page.dashboard.js', 'xadmin.page.dashboard.css'))
    if self.widget_customiz:
        media = (media + self.vendor('xadmin.plugin.portal.js'))
    for ws in self.widgets:
        for widget in ws:
            media = (media + widget.media())
    return media