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 /examples/sandbox/views.py | |
| parent | 698df527a3b80edbf4278ea52e88c1699b2f2256 (diff) | |
| download | django-rest-framework-370274f5640d55ef71422f7a2440710a43ff900e.tar.bz2 | |
Allow views to return HttpResponses.  Add initial() hook method
Diffstat (limited to 'examples/sandbox/views.py')
| -rw-r--r-- | examples/sandbox/views.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sandbox/views.py b/examples/sandbox/views.py index d5b59284..1c55c28f 100644 --- a/examples/sandbox/views.py +++ b/examples/sandbox/views.py @@ -1,10 +1,10 @@  """The root view for the examples provided with Django REST framework"""  from django.core.urlresolvers import reverse -from djangorestframework.views import BaseView +from djangorestframework.views import View -class Sandbox(BaseView): +class Sandbox(View):      """This is the sandbox for the examples provided with [Django REST framework](http://django-rest-framework.org).      These examples are provided to help you get a better idea of the some of the features of RESTful APIs created using the framework.  | 
