Пример #1
0
def followers(request, username, offset='top', direction='next'):
    user = get_object_or_404(User, username=username)
    followers, pagination = models.followers(user,
                                             offset=offset,
                                             direction=direction,
                                             viewer=request.user,
                                             request=request)

    return {'followers': followers, 'pagination': pagination}
Пример #2
0
def followers(request, username):
    user = get_object_or_404(User, username=username)
    return {"followers": models.followers(user)}
Пример #3
0
def followers(request, username):
    user = get_object_or_404(User, username=username)
    return {'followers': models.followers(user)}
Пример #4
0
def followers(request, username, offset='top', direction='next'):
    user = get_object_or_404(User, username=username)
    followers, pagination = models.followers(user, offset=offset, direction=direction, viewer=request.user, request=request)

    return {'followers': followers, 'pagination': pagination}