Created
January 19, 2014 11:29
-
-
Save insanemainframe/8503606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
threads = self.get_queryset().order_by('-update_time') | |
thread_container = [] | |
for thread in threads: | |
posts = thread.posts.all()[:3] | |
item = dict(thread=thread, posts=posts) | |
thread_container.append(item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment