diff --git a/django_wsgi/embedded_wsgi.py b/django_wsgi/embedded_wsgi.py index 5bbe48b..3b0d52d 100644 --- a/django_wsgi/embedded_wsgi.py +++ b/django_wsgi/embedded_wsgi.py @@ -59,7 +59,7 @@ def call_wsgi_app(wsgi_app, request, path_info): new_request.script_name = webob_request.script_name + consumed_path # If the user has been authenticated in Django, log him in the WSGI app: - if request.user.is_authenticated(): + if request.user.is_authenticated: new_request.remote_user = request.user.username # Cleaning the routing_args, if any. The application should have its own