Permalink
Browse files

Simplifying the tag rendering (thanks Soviut).

  • Loading branch information...
1 parent a195594 commit 626f6f3663688a3d74952087f1f849c6ce984ea6 @nathanborror committed Sep 30, 2010
Showing with 1 addition and 3 deletions.
  1. +1 −3 basic/blog/templates/blog/post_detail.html
@@ -32,9 +32,7 @@
{% tags_for_object object as tag_list %}
{% if tag_list %}
<p class="inline_tag_list"><strong>{% trans "Related tags" %}:</strong>
- {% for tag in tag_list %}
- {{ tag }}{% if not forloop.last %}, {% endif %}
- {% endfor %}
+ {{ tag_list|join", " }}
@bahoo

bahoo Oct 7, 2010

Join is prettier here, but it needs a colon (else, TemplateSyntaxError).
{{ tag_list|join:", " }}

</p>
{% endif %}

0 comments on commit 626f6f3

Please sign in to comment.