python - Django django-admin-tools DashboardModule - HTML Content -


the django-admin-tools says, can use html (or) text in children. it's escaping given html tags. tags have been displayed given without rendering.

self.children.append(modules.dashboardmodule(                   title = 'example',                   children = ['<b>bold example</b>',], )) 

edit template

admin_tools/dashboard/module.html

and add

{% autoescape off %} {% endautoescape %}


Comments

Popular posts from this blog

c# - IMAP GMAIL getting folder list problem -

PHP proxy to get XML: problem with URL arguments -