Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix css rendering #1

Merged
merged 1 commit into from Apr 24, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion filechooser/templatetags/filechooser.py
Expand Up @@ -4,6 +4,7 @@
from django import template
from django.template.loader import get_template
from django.forms.widgets import flatatt
from django.utils.safestring import mark_safe

try:
from django.utils.encoding import force_text
Expand Down Expand Up @@ -44,7 +45,7 @@ def filechooser_css():
{% filechooser_css %}
"""
urls = [url for url in [datatable_css_url(), filechooser_css_url()] if url]
return ''.join([render_css_tag(url) for url in urls])
return mark_safe(''.join([render_css_tag(url) for url in urls]))


@register.simple_tag(takes_context=True)
Expand Down