diff options
| author | Xavier Ordoquy | 2014-12-06 10:53:24 +0100 |
|---|---|---|
| committer | Xavier Ordoquy | 2014-12-06 10:58:17 +0100 |
| commit | e4820d611bb17e33bf466c2a6dedcce7548d8d21 (patch) | |
| tree | 22bd786e186a140a7d27676d948db342f6acc560 /docs/tutorial/5-relationships-and-hyperlinked-apis.md | |
| parent | 544967f36ed6e29819018428d48da00de74958b9 (diff) | |
| download | django-rest-framework-e4820d611bb17e33bf466c2a6dedcce7548d8d21.tar.bz2 | |
Fix the new Django default db name
PrimaryKeyRelatedField now needs a queryset argument.
urls now don't use urlpatterns.
Diffstat (limited to 'docs/tutorial/5-relationships-and-hyperlinked-apis.md')
| -rw-r--r-- | docs/tutorial/5-relationships-and-hyperlinked-apis.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/tutorial/5-relationships-and-hyperlinked-apis.md b/docs/tutorial/5-relationships-and-hyperlinked-apis.md index 50552616..58422929 100644 --- a/docs/tutorial/5-relationships-and-hyperlinked-apis.md +++ b/docs/tutorial/5-relationships-and-hyperlinked-apis.md @@ -44,7 +44,7 @@ Instead of using a concrete generic view, we'll use the base class for represent As usual we need to add the new views that we've created in to our URLconf. We'll add a url pattern for our new API root in `snippets/urls.py`: - url(r'^$', 'api_root'), + url(r'^$', views.api_root), And then add a url pattern for the snippet highlights: |
