aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework
diff options
context:
space:
mode:
authorTom Christie2011-06-07 14:12:02 +0100
committerTom Christie2011-06-07 14:12:02 +0100
commit44dfa05397128d730e825b30af7064e40851c8b8 (patch)
tree1b1c8ce319dcf30e99e705530bfa09ea1c9c638a /djangorestframework
parenta8980892c47677f159499f7711cf812907dfaa47 (diff)
downloaddjango-rest-framework-44dfa05397128d730e825b30af7064e40851c8b8.tar.bz2
Typo. Authenticat<i>on
Diffstat (limited to 'djangorestframework')
-rw-r--r--djangorestframework/authentication.py12
-rw-r--r--djangorestframework/views.py4
2 files changed, 8 insertions, 8 deletions
diff --git a/djangorestframework/authentication.py b/djangorestframework/authentication.py
index 7d6e2114..be22103e 100644
--- a/djangorestframework/authentication.py
+++ b/djangorestframework/authentication.py
@@ -13,13 +13,13 @@ from djangorestframework.utils import as_tuple
import base64
__all__ = (
- 'BaseAuthenticaton',
- 'BasicAuthenticaton',
- 'UserLoggedInAuthenticaton'
+ 'BaseAuthentication',
+ 'BasicAuthentication',
+ 'UserLoggedInAuthentication'
)
-class BaseAuthenticaton(object):
+class BaseAuthentication(object):
"""
All authentication classes should extend BaseAuthentication.
"""
@@ -47,7 +47,7 @@ class BaseAuthenticaton(object):
return None
-class BasicAuthenticaton(BaseAuthenticaton):
+class BasicAuthentication(BaseAuthentication):
"""
Use HTTP Basic authentication.
"""
@@ -78,7 +78,7 @@ class BasicAuthenticaton(BaseAuthenticaton):
return None
-class UserLoggedInAuthenticaton(BaseAuthenticaton):
+class UserLoggedInAuthentication(BaseAuthentication):
"""
Use Django's session framework for authentication.
"""
diff --git a/djangorestframework/views.py b/djangorestframework/views.py
index 5b3cc855..6f2ab5b7 100644
--- a/djangorestframework/views.py
+++ b/djangorestframework/views.py
@@ -56,8 +56,8 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
"""
List of all authenticating methods to attempt.
"""
- authentication = ( authentication.UserLoggedInAuthenticaton,
- authentication.BasicAuthenticaton )
+ authentication = ( authentication.UserLoggedInAuthentication,
+ authentication.BasicAuthentication )
"""
List of all permissions that must be checked.