diff options
| author | Tom Christie | 2013-02-25 05:41:38 -0800 |
|---|---|---|
| committer | Tom Christie | 2013-02-25 05:41:38 -0800 |
| commit | 42aaa9cc68b09f0228ab5e630e1eaa70efebe08b (patch) | |
| tree | 351cf42fe759757d89b49d1b87d54d1d3c9da2fe /docs | |
| parent | 4599cd97cbbfd2f569408cbadef3a3753d19f406 (diff) | |
| parent | cd9a192027bbbe231a25cca4b46d56f520b42de7 (diff) | |
| download | django-rest-framework-42aaa9cc68b09f0228ab5e630e1eaa70efebe08b.tar.bz2 | |
Merge pull request #674 from ryanrdetzel/master
Fix for example in authentication.html
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/api-guide/authentication.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api-guide/authentication.md b/docs/api-guide/authentication.md index 8c1d1185..342fabe7 100644 --- a/docs/api-guide/authentication.md +++ b/docs/api-guide/authentication.md @@ -202,7 +202,7 @@ If the `.authenticate_header()` method is not overridden, the authentication sch The following example will authenticate any incoming request as the user given by the username in a custom request header named 'X_USERNAME'. class ExampleAuthentication(authentication.BaseAuthentication): - def has_permission(self, request, view, obj=None): + def authenticate(self, request): username = request.META.get('X_USERNAME') if not username: return None |
