@register.filter
def fans(user):
 try:
  return Relationship.objects.get_fans_for_user(user)
 except AttributeError:
  pass

@ register . filter def fans ( user ) : try : return Relationship . objects . get_fans_for_user ( user ) except AttributeError : pass
returns people following user but user isnt following .