diff options
| author | Tom Christie | 2012-10-05 15:22:30 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-10-05 15:22:30 +0100 | 
| commit | 84958d131a29d80acea94dec5260b484556e73d0 (patch) | |
| tree | 2738af716dd989f9fb08fdb979dbea9bc6940fc4 /docs/api-guide/views.md | |
| parent | 9d8bce8f5b0915223f57d9fe3d4b63029cfc64c2 (diff) | |
| download | django-rest-framework-84958d131a29d80acea94dec5260b484556e73d0.tar.bz2 | |
Doc style tweaks
Diffstat (limited to 'docs/api-guide/views.md')
| -rw-r--r-- | docs/api-guide/views.md | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/docs/api-guide/views.md b/docs/api-guide/views.md index a615026f..cbfa2e28 100644 --- a/docs/api-guide/views.md +++ b/docs/api-guide/views.md @@ -83,7 +83,7 @@ The following methods are called before dispatching to the handler method.  The following methods are called directly by the view's `.dispatch()` method.  These perform any actions that need to occur before or after calling the handler methods such as `.get()`, `.post()`, `put()` and `.delete()`.   -### .initial(self, request, *args, **kwargs) +### .initial(self, request, \*args, **kwargs)  Performs any actions that need to occur before the handler method gets called.  This method is used to enforce permissions and throttling, and perform content negotiation. @@ -98,13 +98,13 @@ The default implementation handles any subclass of `rest_framework.exceptions.AP  If you need to customize the error responses your API returns you should subclass this method. -### .initialize_request(self, request, *args, **kwargs) +### .initialize_request(self, request, \*args, **kwargs)  Ensures that the request object that is passed to the handler method is an instance of `Request`, rather than the usual Django `HttpRequest`.  You won't typically need to override this method. -### .finalize_response(self, request, response, *args, **kwargs) +### .finalize_response(self, request, response, \*args, **kwargs)  Ensures that any `Response` object returned from the handler method will be rendered into the correct content type, as determined by the content negotation. | 
