diff options
| author | Xavier Ordoquy | 2015-01-27 23:15:26 +0100 | 
|---|---|---|
| committer | Xavier Ordoquy | 2015-01-27 23:15:26 +0100 | 
| commit | 987880e13138a93d9cc0e44b7ed30297909f7b03 (patch) | |
| tree | 1925d91078eff41d05a8e9840c503b6117d41446 /tutorial/5-relationships-and-hyperlinked-apis/index.html | |
| parent | d8dbd8679080035de4e785a8e7b998fb01f4052b (diff) | |
| download | django-rest-framework-987880e13138a93d9cc0e44b7ed30297909f7b03.tar.bz2 | |
Update documentation
Diffstat (limited to 'tutorial/5-relationships-and-hyperlinked-apis/index.html')
| -rw-r--r-- | tutorial/5-relationships-and-hyperlinked-apis/index.html | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/tutorial/5-relationships-and-hyperlinked-apis/index.html b/tutorial/5-relationships-and-hyperlinked-apis/index.html index 0d82b190..39b8dd42 100644 --- a/tutorial/5-relationships-and-hyperlinked-apis/index.html +++ b/tutorial/5-relationships-and-hyperlinked-apis/index.html @@ -482,7 +482,9 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):  <li>Our snippet and user serializers include <code>'url'</code> fields that by default will refer to <code>'{model_name}-detail'</code>, which in this case will be <code>'snippet-detail'</code> and <code>'user-detail'</code>.</li>  </ul>  <p>After adding all those names into our URLconf, our final <code>snippets/urls.py</code> file should look something like this:</p> -<pre><code># API endpoints +<pre><code>from django.conf.urls import url, include + +# API endpoints  urlpatterns = format_suffix_patterns([      url(r'^$', views.api_root),      url(r'^snippets/$', | 
