Package Reference

How to display a list of friends for a user

Use friends() template filter to obtain a QuerySet containing the User‘s who are friends with the filter’s argument:

{% load friends  %}
<ul>{% for friend in user|friends %}
  <li>{{ friend.get_full_name }}</li>
{% endfor %}</ul>

The code above should produce a result like this:

  <li>Lenda Murray</li>
  <li>Sharon Bruneau</li>
  <li>Cory Everson</li>