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

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -