diff options
| author | Tom Christie | 2014-06-12 12:22:09 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-06-12 12:22:09 +0100 |
| commit | 106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9 (patch) | |
| tree | 6cc268279408148a61c95a63cad523dc0e6589a4 /api-guide/permissions.html | |
| parent | 03ddd237c93ea5b9159260c49fd856595dbea53c (diff) | |
| download | django-rest-framework-106c8db6f5cacf1e37978d5cf13c9fde3ca29ce9.tar.bz2 | |
Latest docs build
Diffstat (limited to 'api-guide/permissions.html')
| -rw-r--r-- | api-guide/permissions.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/permissions.html b/api-guide/permissions.html index a42b9e3c..5422ae35 100644 --- a/api-guide/permissions.html +++ b/api-guide/permissions.html @@ -239,7 +239,7 @@ or if you override the <code>get_object</code> method on a generic view, then yo <p>You can also set the authentication policy on a per-view, or per-viewset basis, using the <code>APIView</code> class based views.</p> <pre class="prettyprint lang-py"><code>from rest_framework.permissions import IsAuthenticated -from rest_framework.responses import Response +from rest_framework.response import Response from rest_framework.views import APIView class ExampleView(APIView): |
