##// END OF EJS Templates
Little simplifying for loading last posts
neko259 -
r2045:3563d624 default
parent child Browse files
Show More
@@ -180,7 +180,7 b' class SettingsManager:'
180
180
181 def get_last_posts(self):
181 def get_last_posts(self):
182 post_ids = self.get_setting(SETTING_LAST_POSTS) or []
182 post_ids = self.get_setting(SETTING_LAST_POSTS) or []
183 return [boards.models.Post.objects.get(id=post_id) for post_id in post_ids]
183 return list(boards.models.Post.objects.filter(id__in=post_ids))
184
184
185
185
186 class SessionSettingsManager(SettingsManager):
186 class SessionSettingsManager(SettingsManager):
General Comments 0
You need to be logged in to leave comments. Login now