aboutsummaryrefslogtreecommitdiffstats
path: root/examples/sandbox
diff options
context:
space:
mode:
authorTom Christie2011-05-12 12:55:13 +0100
committerTom Christie2011-05-12 12:55:13 +0100
commit15f9e7c56699d31043782045a9fe47c354f612cb (patch)
tree2c58441416a877d0afba22d85aea691190a17fa1 /examples/sandbox
parent4d126796752cc3c79a24fd9caed49da6c525096f (diff)
downloaddjango-rest-framework-15f9e7c56699d31043782045a9fe47c354f612cb.tar.bz2
refactoring resource specfic stuff into ResourceMixin - validators now defunct
Diffstat (limited to 'examples/sandbox')
-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.