Upgrade sorl-thumbnail to 11.09.1

Issue #1378 duplicate
Jason Buckner
created an issue

The syntax differences between sorl-thumbnail 3.2.5 and 11.09.1 make this a rather broad patch and an upgrade that can be require a lot of finding and fixing for sites using 3.2.5.

There are three primary differences I've found that affect Satchmo:

  1. You quote the thumbnail size in 11.09.1:

{{{ {% thumbnail product.picture "84x84" as image %} }}} (11.09.1)

vs.

{{{ {% thumbnail product.picture 84x84 as image %} }}} (3.2.5)

  1. You need a closing {{{ {% endthumbnail %} }}} tag in 11.09.1.

  2. The image src URL is now referenced by {{{ <img src="{{ image.url }}" /> }}} instead of {{{ <img src="{{ image }}" /> }}}

I've attached a patch with these changes throughout the tip and so far my testing has been successful, but it could use another sets of eyes.

Comments (1)

  1. Log in to comment