diff gpp/templates/bio/members.html @ 118:a20b2c492d55

Reduced some sql queries by adding a select_related and monkey patching user profiles onto a user list in shoutbox and the bio/member's list, respectively.
author Brian Neal <bgneal@gmail.com>
date Sat, 24 Oct 2009 02:39:19 +0000
parents dbd703f7d63a
children 152d77265da6
line wrap: on
line diff
--- a/gpp/templates/bio/members.html	Fri Oct 23 03:09:33 2009 +0000
+++ b/gpp/templates/bio/members.html	Sat Oct 24 02:39:19 2009 +0000
@@ -32,12 +32,12 @@
    <td><a href="{% url bio-view_profile username=u.username %}">{% avatar u %}</a></td>
    <td><a href="{% url bio-view_profile username=u.username %}" title="View profile for {{ u.username }}">{{ u.username }}</a></td>
    <td>{{ u.get_full_name }}</td>
-   <td>{{ u.get_profile.location }}</td>
+   <td>{{ u.user_profile.location }}</td>
    <td>{{ u.date_joined|date:"M. d, Y" }}</td>
    <td>
       {% ifnotequal user u %}<a href="{% url messages-compose_to u.username %}">
          <img src="{{ MEDIA_URL }}icons/note.png" alt="PM" title="Send private message" /></a>{% endifnotequal %}
-      {% if not u.get_profile.hide_email %}<a href="mailto:{{ u.email }}">
+      {% if not u.user_profile.hide_email %}<a href="mailto:{{ u.email }}">
          <img src="{{ MEDIA_URL }}icons/email.png" alt="Email" title="Send Email" /></a>{% endif %}
    </td>
 </tr>