title: How to make Django comments use select_related() on "user" field?
body: <p>I'm using <a href="https://docs.djangoproject.com/en/dev/ref/contrib/comments/">django comments frameworks</a>. All the comments are posted by authenticated users. Near the comment, I'm showing some user profile info using <code>{{ comment.user.get_profile }}</code></p>
  
  <pre><code>{# custom comment list templates #}
  &lt;dl id="comments"&gt;
    {% for comment in comment_list %}
      &lt;dt id="c{{ comment.id }}"&gt;
          {{ comment.submit_date }} - {{ comment.user.get_profile.display_name }}
      &lt;/dt&gt;
      &lt;dd&gt;
          &lt;p&gt;{{ comment.comment }}&lt;/p&gt;
      &lt;/dd&gt;
    {% endfor %}
  &lt;/dl&gt;
  </code></pre>
  
  <p>Problem is that django's comment queries does not use <code>select_related()</code> and for 100 comments I get 101 hit on the database.</p>
  
  <p>Is there a way to make django comments framework to select user profile for each comment in one go?</p>