diff options
| author | Tom Christie | 2015-03-16 12:55:10 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-03-16 12:55:10 +0000 | 
| commit | 09d51ea4e256ed99421dc52cd6b4626e7172b667 (patch) | |
| tree | ecb2cacff5b469877e03ea09308388356ea56170 /api-guide | |
| parent | 64c44bf357b37d9fcccac67df27cca0fae4fe66b (diff) | |
| download | django-rest-framework-09d51ea4e256ed99421dc52cd6b4626e7172b667.tar.bz2 | |
Update documentation
Diffstat (limited to 'api-guide')
| -rw-r--r-- | api-guide/pagination/index.html | 2 | ||||
| -rw-r--r-- | api-guide/testing/index.html | 2 | 
2 files changed, 2 insertions, 2 deletions
| diff --git a/api-guide/pagination/index.html b/api-guide/pagination/index.html index d9a3395a..6da6e135 100644 --- a/api-guide/pagination/index.html +++ b/api-guide/pagination/index.html @@ -539,7 +539,7 @@ class StandardResultsSetPagination(PageNumberPagination):  }  </code></pre>  <h4 id="setup_1">Setup</h4> -<p>To enable the <code>PageNumberPagination</code> style globally, use the following configuration:</p> +<p>To enable the <code>LimitOffsetPagination</code> style globally, use the following configuration:</p>  <pre><code>REST_FRAMEWORK = {      'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination'  } diff --git a/api-guide/testing/index.html b/api-guide/testing/index.html index 19407551..0267d5f3 100644 --- a/api-guide/testing/index.html +++ b/api-guide/testing/index.html @@ -498,7 +498,7 @@ request = factory.put('/notes/547/', content, content_type=content_type)  <h2 id="forcing-authentication">Forcing authentication</h2>  <p>When testing views directly using a request factory, it's often convenient to be able to directly authenticate the request, rather than having to construct the correct authentication credentials.</p>  <p>To forcibly authenticate a request, use the <code>force_authenticate()</code> method.</p> -<pre><code>from rest_framework.tests import force_authenticate +<pre><code>from rest_framework.test import force_authenticate  factory = APIRequestFactory()  user = User.objects.get(username='olivia') | 
