aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/views.py
diff options
context:
space:
mode:
authorTom Christie2011-06-14 18:22:13 +0100
committerTom Christie2011-06-14 18:22:13 +0100
commit412b5fc2d54def2f2601b860b80afaa52d595e58 (patch)
treeb700e41c2d17a52d4726da7f62027c50f391b5e9 /djangorestframework/views.py
parent323d52e7c44c208dce545a8084f7401384fd731e (diff)
downloaddjango-rest-framework-412b5fc2d54def2f2601b860b80afaa52d595e58.tar.bz2
Support for nesting resources etc...
--HG-- rename : djangorestframework/tests/resources.py => djangorestframework/tests/serializer.py
Diffstat (limited to 'djangorestframework/views.py')
-rw-r--r--djangorestframework/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/views.py b/djangorestframework/views.py
index 6f2ab5b7..49d722c5 100644
--- a/djangorestframework/views.py
+++ b/djangorestframework/views.py
@@ -150,8 +150,8 @@ class View(ResourceMixin, RequestMixin, ResponseMixin, AuthMixin, DjangoView):
response.headers['Allow'] = ', '.join(self.allowed_methods)
response.headers['Vary'] = 'Authenticate, Accept'
- return self.render(response)
-
+ return self.render(response)
+
class ModelView(View):
"""A RESTful view that maps to a model in the database."""