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
Post a Comment