aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/authentication.py
diff options
context:
space:
mode:
authorJamie Matthews2012-09-11 14:17:26 +0100
committerJamie Matthews2012-09-11 14:20:35 +0100
commit272c49685c8823068492ec9fadb7f982001244d7 (patch)
treed3281dcb19809125ec94d8c419facc2b1a7ae69e /djangorestframework/tests/authentication.py
parentd4f8b4cf0683923fe85652f8fd572d2931eb3074 (diff)
downloaddjango-rest-framework-272c49685c8823068492ec9fadb7f982001244d7.tar.bz2
Better naming for properties on views, requests and responses
renderers is now renderer_classes parsers is now parser_classes authentication is now authentication_classes
Diffstat (limited to 'djangorestframework/tests/authentication.py')
-rw-r--r--djangorestframework/tests/authentication.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/tests/authentication.py b/djangorestframework/tests/authentication.py
index fcc8f7ba..dab06b97 100644
--- a/djangorestframework/tests/authentication.py
+++ b/djangorestframework/tests/authentication.py
@@ -23,7 +23,7 @@ class MockView(APIView):
def put(self, request):
return HttpResponse({'a': 1, 'b': 2, 'c': 3})
-MockView.authentication += (TokenAuthentication,)
+MockView.authentication_classes += (TokenAuthentication,)
urlpatterns = patterns('',
(r'^$', MockView.as_view()),