@register.filter
def friends(user):
    try:
        return Relationship.objects.get_friends_for_user(user)
    except AttributeError:
        return []
Returns people user is following sans people blocking user.
dataset/ETHPy150Open nathanborror/django-basic-apps/basic/relationships/templatetags/relationships.py/friends