diff options
Diffstat (limited to 'rest_framework')
| -rw-r--r-- | rest_framework/request.py | 4 | ||||
| -rw-r--r-- | rest_framework/templates/rest_framework/base.html | 2 |
2 files changed, 5 insertions, 1 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 diff --git a/rest_framework/templates/rest_framework/base.html b/rest_framework/templates/rest_framework/base.html index abf3672f..d26cb8f4 100644 --- a/rest_framework/templates/rest_framework/base.html +++ b/rest_framework/templates/rest_framework/base.html @@ -95,7 +95,7 @@ <form class="button-form" action="{{ request.get_full_path }}" method="POST" class="pull-right"> {% csrf_token %} <input type="hidden" name="{{ api_settings.FORM_METHOD_OVERRIDE }}" value="OPTIONS" /> - <button class="btn btn-info js-tooltip" title="Make an OPTIONS request on the {{ name }} resource">OPTIONS</button> + <button class="btn btn-primary js-tooltip" title="Make an OPTIONS request on the {{ name }} resource">OPTIONS</button> </form> {% endif %} |
