##// END OF EJS Templates
Speed up loading by getting all favorite tags at once (BB-65)
neko259 -
r996:1e1098b4 default
parent child Browse files
Show More
@@ -70,9 +70,7 b' class SettingsManager:'
70 tag_names = self.get_setting(SETTING_FAVORITE_TAGS)
70 tag_names = self.get_setting(SETTING_FAVORITE_TAGS)
71 tags = []
71 tags = []
72 if tag_names:
72 if tag_names:
73 for tag_name in tag_names:
73 tags = Tag.objects.filter(name__in=tag_names)
74 tag = get_object_or_404(Tag, name=tag_name)
75 tags.append(tag)
76 return tags
74 return tags
77
75
78 def add_fav_tag(self, tag):
76 def add_fav_tag(self, tag):
General Comments 0
You need to be logged in to leave comments. Login now