Show More
@@ -311,6 +311,11 b' class Post(models.Model):' | |||
|
311 | 311 | |
|
312 | 312 | return last_replies |
|
313 | 313 | |
|
314 | def get_tags(self): | |
|
315 | """Get a sorted tag list""" | |
|
316 | ||
|
317 | return self.tags.order_by('name') | |
|
318 | ||
|
314 | 319 | |
|
315 | 320 | class User(models.Model): |
|
316 | 321 |
@@ -84,7 +84,7 b'' | |||
|
84 | 84 | {{ thread.thread.get_images_count }} {% trans 'images' %}. |
|
85 | 85 | {% if thread.thread.tags %} |
|
86 | 86 | <span class="tags"> |
|
87 |
{% for tag in thread.thread.tags |
|
|
87 | {% for tag in thread.thread.get_tags %} | |
|
88 | 88 | <a class="tag" href=" |
|
89 | 89 | {% url 'tag' tag_name=tag.name %}"> |
|
90 | 90 | #{{ tag.name }}</a> |
General Comments 0
You need to be logged in to leave comments.
Login now