diff options
Diffstat (limited to 'examples/modelresourceexample/views.py')
| -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 |
