Exemplo n.º 1
0
def logout(request):

    logout_session(request)

    user = request.datamanager.user  # better to take user only NOW, after logout
    user.add_message(_("You've been successfully logged out."))
    return HttpResponseRedirect(reverse(login, kwargs=dict(game_instance_id=request.datamanager.game_instance_id)))
Exemplo n.º 2
0
def logout(request):

    logout_session(request)

    user = request.datamanager.user  # better to take user only NOW, after logout
    user.add_message(_("You've been successfully logged out."))
    return HttpResponseRedirect(game_view_url(login, datamanager=request.datamanager))
Exemplo n.º 3
0
def logout(request):
    logout_session(request)

    user = request.datamanager.user  # better to take user only NOW, after logout
    user.add_message(_("You've been successfully logged out."))
    return HttpResponseRedirect(
        game_view_url(login, datamanager=request.datamanager))