Commit bf4b3ff0 by Oliver Eidel Committed by Tom Christie

Fix token param in force_authenticate example (#5284)

related_name for Token is `auth_token`, not `token`.
parent 52e0f3ae
......@@ -82,7 +82,7 @@ For example, when forcibly authenticating using a token, you might do something
user = User.objects.get(username='olivia')
request = factory.get('/accounts/django-superstars/')
force_authenticate(request, user=user, token=user.token)
force_authenticate(request, user=user, token=user.auth_token)
---
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment