diff options
| author | Tom Christie | 2011-05-24 10:27:24 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-24 10:27:24 +0100 |
| commit | 370274f5640d55ef71422f7a2440710a43ff900e (patch) | |
| tree | 2b970d3e1ad6d283050139bfe7a914bf10586963 /djangorestframework/tests/accept.py | |
| parent | 698df527a3b80edbf4278ea52e88c1699b2f2256 (diff) | |
| download | django-rest-framework-370274f5640d55ef71422f7a2440710a43ff900e.tar.bz2 | |
Allow views to return HttpResponses. Add initial() hook method
Diffstat (limited to 'djangorestframework/tests/accept.py')
| -rw-r--r-- | djangorestframework/tests/accept.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tests/accept.py b/djangorestframework/tests/accept.py index 293a7284..f26de633 100644 --- a/djangorestframework/tests/accept.py +++ b/djangorestframework/tests/accept.py @@ -1,6 +1,6 @@ from django.test import TestCase from djangorestframework.compat import RequestFactory -from djangorestframework.views import BaseView +from djangorestframework.views import View # See: http://www.useragentstring.com/ @@ -19,7 +19,7 @@ class UserAgentMungingTest(TestCase): def setUp(self): - class MockView(BaseView): + class MockView(View): permissions = () def get(self, request): |
