aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sandbox/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sandbox/views.py')
-rw-r--r--examples/sandbox/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/sandbox/views.py b/examples/sandbox/views.py
index 04e4da41..78b722ca 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.resource import Resource
+from djangorestframework.views import BaseView
-class Sandbox(Resource):
+class Sandbox(BaseView):
"""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.