from followers.models import Relationship


def get_followers(user):
    relationships = Relationship.objects.filter(target=user)
    followers = list()
    for relationship in relationships:
        followers.append(relationship.origin)
    return followers


def get_following(user):
    relationships = Relationship.objects.filter(origin=user)
    following = list()
    for relationship in relationships:
        following.append(relationship.target)
    return following

dfdf748e82d389b0f3d3f5273ce03ec07b53744e
<mask token>

<mask token>


def get_followers(user):
    relationships = Relationship.objects.filter(target=user)
    followers = list()
    for relationship in relationships:
        followers.append(relationship.origin)
    return followers


<mask token>

<mask token>


def get_followers(user):
    relationships = Relationship.objects.filter(target=user)
    followers = list()
    for relationship in relationships:
        followers.append(relationship.origin)
    return followers


def get_following(user):
    relationships = Relationship.objects.filter(origin=user)
    following = list()
    for relationship in relationships:
        following.append(relationship.target)
    return following

from followers.models import Relationship


def get_followers(user):
    relationships = Relationship.objects.filter(target=user)
    followers = list()
    for relationship in relationships:
        followers.append(relationship.origin)
    return followers


def get_following(user):
    relationships = Relationship.objects.filter(origin=user)
    following = list()
    for relationship in relationships:
        following.append(relationship.target)
    return following
