diff options
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/$', | 
