diff options
| author | Sébastien Piquemal | 2012-02-10 11:05:20 +0200 |
|---|---|---|
| committer | Sébastien Piquemal | 2012-02-10 11:05:20 +0200 |
| commit | b33579a7a18c2cbc6e3789d4a7dc78c82fb0fe80 (patch) | |
| tree | acfb589dee7f5aea5937d3705e1e4eaa696ae879 /examples/objectstore | |
| parent | db0b01037a95946938ccd44eae14d8779bfff1a9 (diff) | |
| download | django-rest-framework-b33579a7a18c2cbc6e3789d4a7dc78c82fb0fe80.tar.bz2 | |
attempt at fixing the examples
Diffstat (limited to 'examples/objectstore')
| -rw-r--r-- | examples/objectstore/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/objectstore/views.py b/examples/objectstore/views.py index 47f5147a..ae545394 100644 --- a/examples/objectstore/views.py +++ b/examples/objectstore/views.py @@ -67,7 +67,7 @@ class StoredObject(View): """ pathname = os.path.join(OBJECT_STORE_DIR, key) if not os.path.exists(pathname): - return Response(status.HTTP_404_NOT_FOUND) + return Response(status=status.HTTP_404_NOT_FOUND) return Response(pickle.load(open(pathname, 'rb'))) def put(self, request, key): @@ -84,6 +84,6 @@ class StoredObject(View): """ pathname = os.path.join(OBJECT_STORE_DIR, key) if not os.path.exists(pathname): - return Response(status.HTTP_404_NOT_FOUND) + return Response(status=status.HTTP_404_NOT_FOUND) os.remove(pathname) return Response() |
