We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7fddeef + 8d28e00 commit 20ee3f7Copy full SHA for 20ee3f7
adminsortable2/admin.py
@@ -8,6 +8,7 @@
8
9
from django import forms
10
from django.utils.translation import ugettext_lazy as _
11
+from django.utils.safestring import mark_safe
12
from django.conf.urls import url
13
from django.core.exceptions import ImproperlyConfigured
14
from django.core.paginator import EmptyPage
@@ -165,7 +166,7 @@ def func(this, item):
165
166
html = ''
167
if this.enable_sorting:
168
html = '<div class="drag js-reorder-{1}" order="{0}"> </div>'.format(getattr(item, this.default_order_field), item.pk)
- return html
169
+ return mark_safe(html)
170
171
setattr(func, 'allow_tags', True)
172
# if the field used for ordering has a verbose name use it, otherwise default to "Sort"
0 commit comments