@register.filter
def blockers(user):
 try:
  return Relationship.objects.get_blockers_for_user(user)
 except AttributeError:
  return []

@ register . filter def blockers ( user ) : try : return Relationship . objects . get_blockers_for_user ( user ) except AttributeError : return [ ]
returns list of people blocking user .