Skip to content

Commit

Permalink
jinja > 2.5.2 needs () around filters before slicing (bug 605641)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Balogh committed Oct 20, 2010
1 parent 9ebb79b commit 4f4febd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/browse/templates/browse/category_landing.html
Expand Up @@ -28,7 +28,7 @@ <h3>
{% cache addons %}
{# The featured add-ons for a category should be small, so we get them all
with the if. Shuffling here to take advantage of the cached fragment. #}
{% for addon in addons|list|shuffle[:3] %}
{% for addon in (addons|list|shuffle)[:3] %}
<li class="addon item">
<h4>
<a href="{{ addon.get_url_path() }}">
Expand Down

0 comments on commit 4f4febd

Please sign in to comment.