diff options
| author | Tom Christie | 2011-05-10 16:01:58 +0100 | 
|---|---|---|
| committer | Tom Christie | 2011-05-10 16:01:58 +0100 | 
| commit | 4d126796752cc3c79a24fd9caed49da6c525096f (patch) | |
| tree | 117148c29b0a0f8ca4bbfb299a613b2dbabe8259 /djangorestframework/authentication.py | |
| parent | a2575c1191104df024b41c58825b9a24d4c4ae2d (diff) | |
| download | django-rest-framework-4d126796752cc3c79a24fd9caed49da6c525096f.tar.bz2 | |
More tests, getting new serialization into resource
Diffstat (limited to 'djangorestframework/authentication.py')
| -rw-r--r-- | djangorestframework/authentication.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/authentication.py b/djangorestframework/authentication.py index dea19f91..97e5d9c5 100644 --- a/djangorestframework/authentication.py +++ b/djangorestframework/authentication.py @@ -3,7 +3,7 @@ The ``authentication`` module provides a set of pluggable authentication classes  Authentication behavior is provided by adding the ``AuthMixin`` class to a ``View`` . -The set of authentication methods which are used is then specified by setting +The set of authentication methods which are used is then specified by setting the  ``authentication`` attribute on the ``View`` class, and listing a set of authentication classes.  """ @@ -81,7 +81,7 @@ class UserLoggedInAuthenticaton(BaseAuthenticaton):      """      def authenticate(self, request): -        # TODO: Switch this back to request.POST, and let MultiPartParser deal with the consequences. +        # TODO: Switch this back to request.POST, and let FormParser/MultiPartParser deal with the consequences.          if getattr(request, 'user', None) and request.user.is_active:              # If this is a POST request we enforce CSRF validation.              if request.method.upper() == 'POST':  | 
