diff --git a/api-guide/pagination/index.html b/api-guide/pagination/index.html index d9a3395a5..6da6e1355 100644 --- a/api-guide/pagination/index.html +++ b/api-guide/pagination/index.html @@ -539,7 +539,7 @@ class StandardResultsSetPagination(PageNumberPagination): }
To enable the PageNumberPagination
style globally, use the following configuration:
To enable the LimitOffsetPagination
style globally, use the following configuration:
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination'
}
diff --git a/api-guide/testing/index.html b/api-guide/testing/index.html
index 194075510..0267d5f3c 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)
Forcing authentication
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.
To forcibly authenticate a request, use the force_authenticate()
method.
-from rest_framework.tests import force_authenticate
+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 71647c164..9af09a7f1 100644
--- a/topics/3.1-announcement/index.html
+++ b/topics/3.1-announcement/index.html
@@ -496,7 +496,7 @@ Host: example.org
ModelSerializer API
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.
-For more information, see the documentation on customizing field mappings for ModelSerializer classes.
+For more information, see the documentation on customizing field mappings for ModelSerializer classes.
Moving packages out of core
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 pip install
the new packages, and change any import paths.
diff --git a/tutorial/2-requests-and-responses/index.html b/tutorial/2-requests-and-responses/index.html
index 7357244b8..23f03a3c3 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"