Update release notes

This commit is contained in:
Tom Christie 2013-12-09 09:55:42 +00:00
parent e9dbffb602
commit 124e996b53
2 changed files with 5 additions and 1 deletions

View File

@ -548,7 +548,7 @@ The <code>ModelSerializer</code> class lets you automatically create a Serialize
fields = ('url', 'account_name', 'users', 'created') fields = ('url', 'account_name', 'users', 'created')
lookup_field = 'slug' lookup_field = 'slug'
</code></pre> </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> <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): <pre class="prettyprint lang-py"><code>class AccountSerializer(serializers.HyperlinkedModelSerializer):
url = serializers.HyperlinkedIdentityField( url = serializers.HyperlinkedIdentityField(

View File

@ -244,6 +244,10 @@
</code></pre> </code></pre>
<hr /> <hr />
<h2 id="23x-series">2.3.x series</h2> <h2 id="23x-series">2.3.x series</h2>
<h3 id="master">Master</h3>
<ul>
<li>JSON renderer now deals with objects that implement a dict-like interface.</li>
</ul>
<h3 id="2310">2.3.10</h3> <h3 id="2310">2.3.10</h3>
<p><strong>Date</strong>: 6th December 2013</p> <p><strong>Date</strong>: 6th December 2013</p>
<ul> <ul>