mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Merge pull request #2668 from Maplecroft/doc_fixes
Fix for minor documentation typo
This commit is contained in:
commit
42ee8e147c
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue
Block a user