mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Update release notes
This commit is contained in:
parent
e9dbffb602
commit
124e996b53
|
@ -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(
|
||||
|
|
|
@ -244,6 +244,10 @@
|
|||
</code></pre>
|
||||
<hr />
|
||||
<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>
|
||||
<p><strong>Date</strong>: 6th December 2013</p>
|
||||
<ul>
|
||||
|
|
Loading…
Reference in New Issue
Block a user