mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Improve grammar in .force_authenticate() docs
* Remove unnecessary comma * Remove the "and simple" copied from the line above. * Add "entirely" to emphasize that this function bypasses the authentication step.
This commit is contained in:
parent
80d0ee563a
commit
971bc066c5
|
@ -162,7 +162,7 @@ The `credentials` method is appropriate for testing APIs that require authentica
|
|||
|
||||
#### .force_authenticate(user=None, token=None)
|
||||
|
||||
Sometimes you may want to bypass authentication, and simple force all requests by the test client to be automatically treated as authenticated.
|
||||
Sometimes you may want to bypass authentication entirely and force all requests by the test client to be automatically treated as authenticated.
|
||||
|
||||
This can be a useful shortcut if you're testing the API but don't want to have to construct valid authentication credentials in order to make test requests.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user