Some housekeeping
[redakcja.git] / src / fileupload / templatetags / upload_tags.py
index aefce2e..31cd5bb 100644 (file)
@@ -1,10 +1,14 @@
+# This file is part of FNP-Redakcja, licensed under GNU Affero GPLv3 or later.
+# 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++) { %}
@@ -65,4 +69,4 @@ def upload_js():
     </tr>
 {% } %}
 </script>
-"""
+""")