Skip to content

Commit b4204cf

Browse files
committed
Deployed b1c4d8b with MkDocs version: 0.16.3
1 parent 65bf134 commit b4204cf

File tree

4 files changed

+79
-71
lines changed

4 files changed

+79
-71
lines changed

community/3.0-announcement/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ <h4 id="using-serializersvalidationerror"><a class="toclink" href="#using-serial
579579
<p>The reason behind this is that Django's <code>ValidationError</code> class is intended for use with HTML forms and its API makes using it slightly awkward with nested validation errors that can occur in serializers.</p>
580580
<p>For most users this change shouldn't require any updates to your codebase, but it is worth ensuring that whenever raising validation errors you should prefer using the <code>serializers.ValidationError</code> exception class, and not Django's built-in exception.</p>
581581
<p>We strongly recommend that you use the namespaced import style of <code>import serializers</code> and not <code>from serializers import ValidationError</code> in order to avoid any potential confusion.</p>
582-
<h4 id="change-to-validate_field_name"><a class="toclink" href="#change-to-validate_field_name">Change to <code>validate_&lt;field_name&gt;</code>.</a></h4>
582+
<h4 id="change-to-validate_ltfield_namegt"><a class="toclink" href="#change-to-validate_ltfield_namegt">Change to <code>validate_&lt;field_name&gt;</code>.</a></h4>
583583
<p>The <code>validate_&lt;field_name&gt;</code> method hooks that can be attached to serializer classes change their signature slightly and return type. Previously these would take a dictionary of all incoming data, and a key representing the field name, and would return a dictionary including the validated data for that field:</p>
584584
<pre><code>def validate_score(self, attrs, source):
585585
if attrs['score'] % 10 != 0:
@@ -605,7 +605,7 @@ <h4 id="change-to-validate_field_name"><a class="toclink" href="#change-to-valid
605605
raise serializers.ValidationError({'my_field': 'A field error'})
606606
</code></pre>
607607
<p>This ensures you can still write validation that compares all the input fields, but that marks the error against a particular field.</p>
608-
<h4 id="removal-of-transform_field_name"><a class="toclink" href="#removal-of-transform_field_name">Removal of <code>transform_&lt;field_name&gt;</code>.</a></h4>
608+
<h4 id="removal-of-transform_ltfield_namegt"><a class="toclink" href="#removal-of-transform_ltfield_namegt">Removal of <code>transform_&lt;field_name&gt;</code>.</a></h4>
609609
<p>The under-used <code>transform_&lt;field_name&gt;</code> on serializer classes is no longer provided. Instead you should just override <code>to_representation()</code> if you need to apply any modifications to the representation style.</p>
610610
<p>For example:</p>
611611
<pre><code>def to_representation(self, instance):

community/release-notes/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,9 @@ <h2 id="upgrading"><a class="toclink" href="#upgrading">Upgrading</a></h2>
505505
</code></pre>
506506
<hr />
507507
<h2 id="39x-series"><a class="toclink" href="#39x-series">3.9.x series</a></h2>
508+
<h3 id="394"><a class="toclink" href="#394">3.9.4</a></h3>
509+
<p><strong>Date</strong>: [10th May 2019]</p>
510+
<p>This is a maintenance release that fixes an error handling bug under Python 2.</p>
508511
<h3 id="393"><a class="toclink" href="#393">3.9.3</a></h3>
509512
<p><strong>Date</strong>: [29th April 2019]</p>
510513
<p>This is the last Django REST Framework release that will support Python 2.
@@ -1295,7 +1298,7 @@ <h3 id="323"><a class="toclink" href="#323">3.2.3</a></h3>
12951298
<li>Added regex style to <code>SearchFilter</code>. (<a href="https://github.com/encode/django-rest-framework/issues/3316">#3316</a>)</li>
12961299
<li>Resolve issues with setting blank HTML fields. (<a href="https://github.com/encode/django-rest-framework/issues/3318">#3318</a>) (<a href="https://github.com/encode/django-rest-framework/issues/3321">#3321</a>)</li>
12971300
<li>Correctly display existing 'select multiple' values in browsable API forms. (<a href="https://github.com/encode/django-rest-framework/issues/3290">#3290</a>)</li>
1298-
<li>Resolve duplicated validation message for <code>IPAddressField</code>. ([#3249[gh3249]) (<a href="https://github.com/encode/django-rest-framework/issues/3250">#3250</a>)</li>
1301+
<li>Resolve duplicated validation message for <code>IPAddressField</code>. ([#3249<a href="https://github.com/encode/django-rest-framework/issues/3249">gh3249</a>) (<a href="https://github.com/encode/django-rest-framework/issues/3250">#3250</a>)</li>
12991302
<li>Fix to ensure admin renderer continues to work when pagination is disabled. (<a href="https://github.com/encode/django-rest-framework/issues/3275">#3275</a>)</li>
13001303
<li>Resolve error with <code>LimitOffsetPagination</code> when count=0, offset=0. (<a href="https://github.com/encode/django-rest-framework/issues/3303">#3303</a>)</li>
13011304
</ul>

mkdocs/search_index.json

Lines changed: 9 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)