Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for article in Article.objects.all().prefetch_related('comments__author'):
- for comment in article.comments:
- author = comment.author
- do_things(article.title, comment.text, comment.author.email)
Add Comment
Please, Sign In to add comment