From 7854c939dd077b54c8bcecb649581e2a9fd6399f Mon Sep 17 00:00:00 2001 From: James Rutherford Date: Wed, 11 Mar 2015 10:44:42 +0000 Subject: Fixed import statement in API docs --- docs/api-guide/testing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api-guide/testing.md b/docs/api-guide/testing.md index 8a848c20..dd3295c4 100644 --- a/docs/api-guide/testing.md +++ b/docs/api-guide/testing.md @@ -65,7 +65,7 @@ When testing views directly using a request factory, it's often convenient to be 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') -- cgit v1.2.3