diff options
| author | Tom Christie | 2013-12-09 09:55:42 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-12-09 09:55:42 +0000 |
| commit | 124e996b53512c93f3bfbee7c5cd5e01b0f1979f (patch) | |
| tree | 002edd3c54c5ffc50bac1b84f356ff77869a207e /api-guide | |
| parent | e9dbffb602cf925ce126840db8be6e13277e7b83 (diff) | |
| download | django-rest-framework-124e996b53512c93f3bfbee7c5cd5e01b0f1979f.tar.bz2 | |
Update release notes
Diffstat (limited to 'api-guide')
| -rw-r--r-- | api-guide/serializers.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api-guide/serializers.html b/api-guide/serializers.html index f9ecb9f0..ce04b3f3 100644 --- a/api-guide/serializers.html +++ b/api-guide/serializers.html @@ -548,7 +548,7 @@ The <code>ModelSerializer</code> class lets you automatically create a Serialize fields = ('url', 'account_name', 'users', 'created') lookup_field = 'slug' </code></pre> -<p>Not that the <code>lookup_field</code> will be used as the default on <em>all</em> hyperlinked fields, including both the URL identity, and any hyperlinked relationships.</p> +<p>Note that the <code>lookup_field</code> will be used as the default on <em>all</em> hyperlinked fields, including both the URL identity, and any hyperlinked relationships.</p> <p>For more specific requirements such as specifying a different lookup for each field, you'll want to set the fields on the serializer explicitly. For example:</p> <pre class="prettyprint lang-py"><code>class AccountSerializer(serializers.HyperlinkedModelSerializer): url = serializers.HyperlinkedIdentityField( |
