I want to find out the people I am following on my django simple twitter application. How to make a custom tag for that. I have a custom tag that suggests the user persons to follow:
@register.simple_tag
def people_you_may_know(user_id):
return UserProfile.objects.exclude(
followers__follower__user_id=user_id
).exclude(user_id=user_id)
Thanks in advance.