diff options
| author | Tom Christie | 2011-06-09 02:07:46 +0100 | 
|---|---|---|
| committer | Tom Christie | 2011-06-09 02:07:46 +0100 | 
| commit | 0da291fad33c645a333842159a1df9109d3610a5 (patch) | |
| tree | 630037d48bdbc295f29dc44a3290df4456677be7 | |
| parent | dac7eb0916eef061a119b5f2a293fe8b8ae9d5bf (diff) | |
| download | django-rest-framework-0da291fad33c645a333842159a1df9109d3610a5.tar.bz2 | |
Fix up the example
| -rw-r--r-- | docs/index.rst | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/index.rst b/docs/index.rst index dfa361bd..481bdfe2 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -83,8 +83,8 @@ Using Django REST framework can be as simple as adding a few lines to your urlco          model = MyModel      urlpatterns = patterns('', -        url(r'^$', RootModelResource.as_view(resource=MyResource)), -        url(r'^(?P<pk>[^/]+)/$', ModelResource.as_view(resource=MyResource)), +        url(r'^$', ListOrCreateModelView.as_view(resource=MyResource)), +        url(r'^(?P<pk>[^/]+)/$', InstanceModelView.as_view(resource=MyResource)),      )  Django REST framework comes with two "getting started" examples.  | 
