Commits

Anonymous committed 2410335

...

Comments (0)

Files changed (2)

thumbnail/main.py

     url = property(_get_url)
 
     def __unicode__(self):
-        return urlquote(self.url)
+        return self.url
 
     def img_tag(self):
         html = '<img src="%s" width="%s" height="%s" alt="" />'
         size = self.thumbnail.size
-        return mark_safe(html % (urlquote(self.url), size[0], size[1]))
+        return mark_safe(html % (self.url, size[0], size[1]))

thumbnail/templatetags/thumbnails.py

 from django import template
 from django.conf import settings
 
-from thumbnail.main import DjangoThumbnail
-from thumbnail.base import OPTIONS
+from sorl.thumbnail.main import DjangoThumbnail
+from sorl.thumbnail.base import OPTIONS
 
 register = template.Library()
 
 class ThumbnailNode(template.Node):
-    def __init__(self, source_var, context_name=None, opts=None, debug=False,
+    def __init__(self, source_var, context_name=None, opts=None, debug=True,
                  thumbnail_class=DjangoThumbnail):
         self.context_name = context_name
         self.source_var = template.Variable(source_var)