aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2015-03-16 12:55:10 +0000
committerTom Christie2015-03-16 12:55:10 +0000
commit09d51ea4e256ed99421dc52cd6b4626e7172b667 (patch)
treeecb2cacff5b469877e03ea09308388356ea56170
parent64c44bf357b37d9fcccac67df27cca0fae4fe66b (diff)
downloaddjango-rest-framework-09d51ea4e256ed99421dc52cd6b4626e7172b667.tar.bz2
Update documentation
-rw-r--r--api-guide/pagination/index.html2
-rw-r--r--api-guide/testing/index.html2
-rw-r--r--topics/3.1-announcement/index.html2
-rw-r--r--tutorial/2-requests-and-responses/index.html2
4 files changed, 4 insertions, 4 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')
diff --git a/topics/3.1-announcement/index.html b/topics/3.1-announcement/index.html
index 71647c16..9af09a7f 100644
--- a/topics/3.1-announcement/index.html
+++ b/topics/3.1-announcement/index.html
@@ -496,7 +496,7 @@ Host: example.org
<hr />
<h2 id="modelserializer-api">ModelSerializer API</h2>
<p>The serializer redesign in 3.0 did not include any public API for modifying how ModelSerializer classes automatically generate a set of fields from a given mode class. We've now re-introduced an API for this, allowing you to create new ModelSerializer base classes that behave differently, such as using a different default style for relationships.</p>
-<p>For more information, see the documentation on <a href="../../../api-guide/serializers.md/#customizing-field-mappings">customizing field mappings</a> for ModelSerializer classes.</p>
+<p>For more information, see the documentation on <a href="../../api-guide/serializers#customizing-field-mappings">customizing field mappings</a> for ModelSerializer classes.</p>
<hr />
<h2 id="moving-packages-out-of-core">Moving packages out of core</h2>
<p>We've now moved a number of packages out of the core of REST framework, and into separately installable packages. If you're currently using these you don't need to worry, you simply need to <code>pip install</code> the new packages, and change any import paths.</p>
diff --git a/tutorial/2-requests-and-responses/index.html b/tutorial/2-requests-and-responses/index.html
index 7357244b..23f03a3c 100644
--- a/tutorial/2-requests-and-responses/index.html
+++ b/tutorial/2-requests-and-responses/index.html
@@ -608,4 +608,4 @@ http --json POST http://127.0.0.1:8000/snippets/ code="print 456"
</script>
</body>
-</html>
+</html> \ No newline at end of file