aboutsummaryrefslogtreecommitdiffstats
path: root/docs/index.rst
diff options
context:
space:
mode:
authorTom Christie2011-06-15 14:09:01 +0100
committerTom Christie2011-06-15 14:09:01 +0100
commit7dcb851c7f1e4bc01105fc5856494c196827fe2e (patch)
tree7c0e02a8e504b66e7a33af69f8cd60ed1ad25df3 /docs/index.rst
parent412b5fc2d54def2f2601b860b80afaa52d595e58 (diff)
downloaddjango-rest-framework-7dcb851c7f1e4bc01105fc5856494c196827fe2e.tar.bz2
Allow related models to be fully serialized
Diffstat (limited to 'docs/index.rst')
-rw-r--r--docs/index.rst3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/index.rst b/docs/index.rst
index 2bd37a85..58354ae3 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -80,8 +80,7 @@ Using Django REST framework can be as simple as adding a few lines to your urlco
from myapp.models import MyModel
class MyResource(ModelResource):
- class Meta:
- model = MyModel
+ model = MyModel
urlpatterns = patterns('',
url(r'^$', ListOrCreateModelView.as_view(resource=MyResource)),