Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplifying the tag rendering (thanks Soviut).

  • Loading branch information...
commit 626f6f3663688a3d74952087f1f849c6ce984ea6 1 parent a195594
@nathanborror authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 basic/blog/templates/blog/post_detail.html
View
4 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 added a note

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
</p>
{% endif %}

0 comments on commit 626f6f3

Please sign in to comment.
Something went wrong with that request. Please try again.