aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/modelresource.py
diff options
context:
space:
mode:
authorTom Christie2011-04-27 18:07:28 +0100
committerTom Christie2011-04-27 18:07:28 +0100
commit028851bfa1ee44b8e92808b18d32278d4a473cc8 (patch)
tree7a9497fef627d83bbc75dbd21294ff813216c828 /djangorestframework/modelresource.py
parent762a52edde09297e87c640797219c9bb8255d50a (diff)
downloaddjango-rest-framework-028851bfa1ee44b8e92808b18d32278d4a473cc8.tar.bz2
Fix up tests and examples after refactoring
Diffstat (limited to 'djangorestframework/modelresource.py')
-rw-r--r--djangorestframework/modelresource.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/modelresource.py b/djangorestframework/modelresource.py
index a91c79ee..1afd7fa0 100644
--- a/djangorestframework/modelresource.py
+++ b/djangorestframework/modelresource.py
@@ -416,7 +416,7 @@ class RootModelResource(ModelResource):
queryset = self.queryset if self.queryset else self.model.objects.all()
return queryset.filter(**kwargs)
- put = delete = http_method_not_allowed
+ put = delete = None
class QueryModelResource(ModelResource):
"""Resource with default operations for list.
@@ -428,4 +428,4 @@ class QueryModelResource(ModelResource):
queryset = self.queryset if self.queryset else self.model.objects.all()
return queryset.filer(**kwargs)
- post = put = delete = http_method_not_allowed \ No newline at end of file
+ post = put = delete = None \ No newline at end of file