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

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

Java - Returning an array from a method to main -