예제 #1
0
def widget_give_datalove(request, username):
    if not request.user.is_authenticated():
        return redirect(index)
    query = _common.give_datalove(request, username, query={'user': username})
    return _query_redirect(widget, query)
예제 #2
0
def give_datalove(request, username, from_users=False):
    query = _common.give_datalove(request,username) 
    if from_users:
        return _query_redirect(users, query)
    else:
        return _query_redirect(profile, query, username)