aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/authentication.md
diff options
context:
space:
mode:
authorStephan Groß2013-03-04 14:09:59 +0100
committerStephan Groß2013-03-04 14:09:59 +0100
commitb4c9b68c965c8e07712bf6d173abe4d1e59f8728 (patch)
tree86081bac8c7d8d424392538fbea51a86a1b79f06 /docs/api-guide/authentication.md
parentd6391359f5cf4be394cf5785edab882f28cb225a (diff)
downloaddjango-rest-framework-b4c9b68c965c8e07712bf6d173abe4d1e59f8728.tar.bz2
Add note for using authtoken with custom django user model and south
Diffstat (limited to 'docs/api-guide/authentication.md')
-rw-r--r--docs/api-guide/authentication.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md
index fae86386..80d29ff4 100644
--- a/docs/api-guide/authentication.md
+++ b/docs/api-guide/authentication.md
@@ -169,6 +169,8 @@ The `obtain_auth_token` view will return a JSON response when valid `username` a
Note that the default `obtain_auth_token` view explicitly uses JSON requests and responses, rather than using default renderer and parser classes in your settings. If you need a customized version of the `obtain_auth_token` view, you can do so by overriding the `ObtainAuthToken` view class, and using that in your url conf instead.
+**Note:** If you are using `rest_framework.authtoken` with a custom Django user model and South. you have to insert a `needed_by = (('authtoken', '0001_initial'),)` to your user migration.
+
## SessionAuthentication
This authentication scheme uses Django's default session backend for authentication. Session authentication is appropriate for AJAX clients that are running in the same session context as your website.