Show More
@@ -107,7 +107,7 b' class PostManager(models.Manager):' | |||||
107 |
|
107 | |||
108 | class TagManager(models.Manager): |
|
108 | class TagManager(models.Manager): | |
109 | def get_not_empty_tags(self): |
|
109 | def get_not_empty_tags(self): | |
110 | all_tags = self.all() |
|
110 | all_tags = self.all().order_by('name') | |
111 | tags = [] |
|
111 | tags = [] | |
112 | for tag in all_tags: |
|
112 | for tag in all_tags: | |
113 | if not tag.is_empty(): |
|
113 | if not tag.is_empty(): |
General Comments 0
You need to be logged in to leave comments.
Login now