diff options
| author | Tom Christie | 2012-10-09 12:48:49 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-10-09 12:48:49 +0100 | 
| commit | 7c4d50f621a9c0668b8f8992751de6b2d7bcbe29 (patch) | |
| tree | d3915b7e872765bc4945c8bc5929daf7f861bd9c /rest_framework/request.py | |
| parent | e9475d036ff2fa0244ca0f947192ffa842391784 (diff) | |
| download | django-rest-framework-7c4d50f621a9c0668b8f8992751de6b2d7bcbe29.tar.bz2 | |
Fix browseable API form display error for authenticated permissions
Diffstat (limited to 'rest_framework/request.py')
| -rw-r--r-- | rest_framework/request.py | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/rest_framework/request.py b/rest_framework/request.py index 3725b3c9..0a57d376 100644 --- a/rest_framework/request.py +++ b/rest_framework/request.py @@ -41,6 +41,10 @@ def clone_request(request, method):      ret._content_type = request._content_type      ret._stream = request._stream      ret._method = method +    if hasattr(request, '_user'): +        ret._user = request._user +    if hasattr(request, '_auth'): +        ret._auth = request._auth      return ret | 
