@handle_response_format
@treeio_login_required
def user_logout(request, response_format='html'):
 logout(request)
 return HttpResponseRedirect(reverse('user_login'))

@ handle_response_format @ treeio_login_required def user_logout ( request , response_format = 'html' ) : logout ( request ) return HttpResponseRedirect ( reverse ( 'user_login' ) )
user logout .