Commits

Svyatoslav Bulbakha committed b889edc

Migrate to newer sorl-thumbnail version

  • Participants
  • Parent commits 224bf0c

Comments (0)

Files changed (3)

 ------------
 
 ``django-adminfiles`` requires `Django`_ 1.3 or later,
-`sorl-thumbnail`_ 3.2.5 (not compatible with the rewritten 10.x/11.x series)
+`sorl-thumbnail`_ 11.12 (not compatible with old 3.x series)
 and the `Python Imaging Library`_.
 
 `djangoembed`_ or `django-oembed`_ is required for OEmbed
 for Youtube videos.
 
 .. _Django: http://www.djangoproject.com/
-.. _sorl-thumbnail: http://pypi.python.org/pypi/sorl-thumbnail/3.2.5
+.. _sorl-thumbnail: http://pypi.python.org/pypi/sorl-thumbnail/11.12
 .. _Python Imaging Library: http://www.pythonware.com/products/pil/
 .. _django-oembed: http://pypi.python.org/pypi/django-oembed
 .. _djangoembed: http://pypi.python.org/pypi/djangoembed

File adminfiles/templates/adminfiles/uploader/base.html

 <ul id="adminfiles">
 {% block files %}
 {% for f in files %}
-   <li class="item {{f.content_type}} {{f.sub_type}}" {% if f.is_image %}style="background-image:url({% thumbnail f.upload "144x150" as thumb %}{{ thumb.url }});"{% else %}{% if f.mime_image %}style="background-image:url({{ f.mime_image }});"{% endif %}{% endif %}>
+   <li class="item {{f.content_type}} {{f.sub_type}}" {% if f.is_image %}style="background-image:url({% thumbnail f.upload "144x150" as thumb %}{{ thumb.url }}{% endthumbnail %});"{% else %}{% if f.mime_image %}style="background-image:url({{ f.mime_image }});"{% endif %}{% endif %}>
        <div class="popup">
            <a href="#" class="close" title="Close">X</a>
            <ul>
 [testenv]
 deps=
   django==1.3.1
-  sorl-thumbnail==3.2.5
+  sorl-thumbnail==11.12
   PIL==1.1.7
 commands=python setup.py test
 
 basepython=python2.5
 deps=
   https://github.com/django/django/tarball/master
-  sorl-thumbnail==3.2.5
+  sorl-thumbnail==11.12
   PIL==1.1.7
 
 [testenv:py26-trunk]
 basepython=python2.5
 deps=
   https://github.com/django/django/tarball/master
-  sorl-thumbnail==3.2.5
+  sorl-thumbnail==11.12
   PIL==1.1.7
 
 [testenv:py27-trunk]
 basepython=python2.5
 deps=
   https://github.com/django/django/tarball/master
-  sorl-thumbnail==3.2.5
+  sorl-thumbnail==11.12
   PIL==1.1.7