diff options
| author | Tom Christie | 2011-04-27 18:07:28 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-04-27 18:07:28 +0100 |
| commit | 028851bfa1ee44b8e92808b18d32278d4a473cc8 (patch) | |
| tree | 7a9497fef627d83bbc75dbd21294ff813216c828 /examples/modelresourceexample | |
| parent | 762a52edde09297e87c640797219c9bb8255d50a (diff) | |
| download | django-rest-framework-028851bfa1ee44b8e92808b18d32278d4a473cc8.tar.bz2 | |
Fix up tests and examples after refactoring
Diffstat (limited to 'examples/modelresourceexample')
| -rw-r--r-- | examples/modelresourceexample/views.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/modelresourceexample/views.py b/examples/modelresourceexample/views.py index e912c019..07f50b65 100644 --- a/examples/modelresourceexample/views.py +++ b/examples/modelresourceexample/views.py @@ -7,12 +7,10 @@ class MyModelRootResource(RootModelResource): """A create/list resource for MyModel. Available for both authenticated and anonymous access for the purposes of the sandbox.""" model = MyModel - allowed_methods = anon_allowed_methods = ('GET', 'POST') fields = FIELDS class MyModelResource(ModelResource): """A read/update/delete resource for MyModel. Available for both authenticated and anonymous access for the purposes of the sandbox.""" model = MyModel - allowed_methods = anon_allowed_methods = ('GET', 'PUT', 'DELETE') fields = FIELDS |
