aboutsummaryrefslogtreecommitdiffstats
path: root/examples/modelresourceexample/resources.py
diff options
context:
space:
mode:
authorTom Christie2012-02-23 08:58:10 +0000
committerTom Christie2012-02-23 08:58:10 +0000
commit2b59df004a5bb7449aa4c07277ac846c330a79f7 (patch)
tree3a5e20948d3cd0ea1ca4d25ff35d970646722a30 /examples/modelresourceexample/resources.py
parent8e0b9e55ecb0733369918d4562ba38ba505cdfe8 (diff)
downloaddjango-rest-framework-2b59df004a5bb7449aa4c07277ac846c330a79f7.tar.bz2
reverse takes request as a kwarg for compatibility with django's reverse
Diffstat (limited to 'examples/modelresourceexample/resources.py')
-rw-r--r--examples/modelresourceexample/resources.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/modelresourceexample/resources.py b/examples/modelresourceexample/resources.py
index 634ea6b3..05090f8f 100644
--- a/examples/modelresourceexample/resources.py
+++ b/examples/modelresourceexample/resources.py
@@ -1,6 +1,7 @@
from djangorestframework.resources import ModelResource
from modelresourceexample.models import MyModel
+
class MyModelResource(ModelResource):
model = MyModel
fields = ('foo', 'bar', 'baz', 'url')