fix video
[redakcja.git] / apps / fileupload / templatetags / upload_tags.py
index e49566f..816c828 100644 (file)
@@ -4,13 +4,14 @@
 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
 #
 from django import template
+from django.utils.safestring import mark_safe
 
 register = template.Library()
 
 
 @register.simple_tag
 def upload_js():
-    return """
+    return mark_safe("""
 <!-- The template to display files available for upload -->
 <script id="template-upload" type="text/x-tmpl">
 {% for (var i=0, file; file=o.files[i]; i++) { %}
@@ -77,4 +78,4 @@ def upload_js():
     </tr>
 {% } %}
 </script>
-"""
+""")