(self, user, *models, **kwargs)
return qs.fetch_generic_relations('follow_object')
Returns a queryset of actors that the given user is following (eg who im following).
        Items in the list can be of any model unless a list of restricted models are passed.
        Eg following(user, User) will only return users following the given user
Returns a queryset of actors that the given user is following (eg who im following).
        Items in the list can be of any model unless a list of restricted models are passed.
        Eg following(user, User) will only return users following the given user
Returns a queryset of actors that the given user is following ( eg who im following ) . Items in the list can be of any model unless a list of restricted models are passed . Eg following ( user User ) will only return users following the given user
def following_qs(self, user, *models, **kwargs):
        """
        Returns a queryset of actors that the given user is following (eg who im following).
        Items in the list can be of any model unless a list of restricted models are passed.
        Eg following(user, User) will only return users following the given user
        """
        qs = self.filter(user=user)
        ctype_filters = Q()
        for model in models:
            check(model)
            ctype_filters |= Q(content_type=ContentType.objects.get_for_model(model))
        qs = qs.filter(ctype_filters)

        flag = kwargs.get('flag', '')

        if flag:
            qs = qs.filter(flag=flag)
        return qs.fetch_generic_relations('follow_object')
def following_qs ( self , user , * models , * * kwargs ) : qs = self . filter ( user = user ) ctype_filters = Q ( ) for model in models : check ( model ) ctype_filters |= Q ( content_type = ContentType . objects . get_for_model ( model ) ) qs = qs . filter ( ctype_filters ) flag = kwargs . get ( 'flag' , '' ) if flag : qs = qs . filter ( flag = flag ) return qs . fetch_generic_relations ( 'follow_object' )