How do I get django comments to join on auth_user
Posted
by AlexH
on Stack Overflow
See other posts from Stack Overflow
or by AlexH
Published on 2010-03-30T00:16:27Z
Indexed on
2010/03/30
0:23 UTC
Read the original article
Hit count: 550
django
|django-comments
I'm using the django comments framework, and when I list the comments I want to include some of the information stored in auth_user. However, I find I need an extra query for each comment to get the user info.
I tried using select_related() when I pull the comments, but this doesn't help.
Is there a reason that it's not joining the auth_user table, and is there any way to force it to?
© Stack Overflow or respective owner