aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pygments_api
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-10 11:05:20 +0200
committerSébastien Piquemal2012-02-10 11:05:20 +0200
commitb33579a7a18c2cbc6e3789d4a7dc78c82fb0fe80 (patch)
treeacfb589dee7f5aea5937d3705e1e4eaa696ae879 /examples/pygments_api
parentdb0b01037a95946938ccd44eae14d8779bfff1a9 (diff)
downloaddjango-rest-framework-b33579a7a18c2cbc6e3789d4a7dc78c82fb0fe80.tar.bz2
attempt at fixing the examples
Diffstat (limited to 'examples/pygments_api')
-rw-r--r--examples/pygments_api/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/pygments_api/views.py b/examples/pygments_api/views.py
index 44dd2caa..d59a52c0 100644
--- a/examples/pygments_api/views.py
+++ b/examples/pygments_api/views.py
@@ -81,7 +81,8 @@ class PygmentsRoot(View):
remove_oldest_files(HIGHLIGHTED_CODE_DIR, MAX_FILES)
- return Response(status.HTTP_201_CREATED, headers={'Location': reverse('pygments-instance', args=[unique_id])})
+ self.headers['Location'] = reverse('pygments-instance', args=[unique_id])
+ return Response(status.HTTP_201_CREATED)
class PygmentsInstance(View):