fnp
/
redakcja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c8f0ff
)
fix upload_js
author
Jan Szejko
<janek37@gmail.com>
Fri, 17 Feb 2017 09:57:52 +0000
(10:57 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Fri, 17 Feb 2017 09:57:52 +0000
(10:57 +0100)
apps/fileupload/templatetags/upload_tags.py
patch
|
blob
|
history
diff --git
a/apps/fileupload/templatetags/upload_tags.py
b/apps/fileupload/templatetags/upload_tags.py
index
e49566f
..
816c828
100644
(file)
--- a/
apps/fileupload/templatetags/upload_tags.py
+++ b/
apps/fileupload/templatetags/upload_tags.py
@@
-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>
-"""
+"""
)