diff options
| author | Tom Christie | 2012-02-23 08:58:10 +0000 |
|---|---|---|
| committer | Tom Christie | 2012-02-23 08:58:10 +0000 |
| commit | 2b59df004a5bb7449aa4c07277ac846c330a79f7 (patch) | |
| tree | 3a5e20948d3cd0ea1ca4d25ff35d970646722a30 /examples/modelresourceexample/resources.py | |
| parent | 8e0b9e55ecb0733369918d4562ba38ba505cdfe8 (diff) | |
| download | django-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.py | 1 |
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') |
