diff options
Diffstat (limited to 'topics')
| -rw-r--r-- | topics/3.0-announcement/index.html | 5 | ||||
| -rw-r--r-- | topics/project-management/index.html | 5 | ||||
| -rw-r--r-- | topics/release-notes/index.html | 23 |
3 files changed, 29 insertions, 4 deletions
diff --git a/topics/3.0-announcement/index.html b/topics/3.0-announcement/index.html index 96e68826..25d0131c 100644 --- a/topics/3.0-announcement/index.html +++ b/topics/3.0-announcement/index.html @@ -472,9 +472,9 @@ ExampleSerializer(data=request.DATA, files=request.FILES) </ol> <p>The resulting API changes are further detailed below.</p> <h4 id="the-create-and-update-methods">The <code>.create()</code> and <code>.update()</code> methods.</h4> -<p>The <code>.restore_object()</code> method is now replaced with two separate methods, <code>.create()</code> and <code>.update()</code>.</p> -<p>These methods also replace the optional <code>.save_object()</code> method, which no longer exists.</p> +<p>The <code>.restore_object()</code> method is now removed, and we instead have two separate methods, <code>.create()</code> and <code>.update()</code>. These methods work slightly different to the previous <code>.restore_object()</code>.</p> <p>When using the <code>.create()</code> and <code>.update()</code> methods you should both create <em>and save</em> the object instance. This is in contrast to the previous <code>.restore_object()</code> behavior that would instantiate the object but not save it.</p> +<p>These methods also replace the optional <code>.save_object()</code> method, which no longer exists.</p> <p>The following example from the tutorial previously used <code>restore_object()</code> to handle both creating and updating object instances.</p> <pre><code>def restore_object(self, attrs, instance=None): if instance: @@ -1136,6 +1136,7 @@ amount = serializers.DecimalField( <li>The serializer <code>ChoiceField</code> does not currently display nested choices, as was the case in 2.4. This will be address as part of 3.1.</li> <li>Due to the new templated form rendering, the 'widget' option is no longer valid. This means there's no easy way of using third party "autocomplete" widgets for rendering select inputs that contain a large number of choices. You'll either need to use a regular select or a plain text input. We may consider addressing this in 3.1 or 3.2 if there's sufficient demand.</li> <li>Some of the default validation error messages were rewritten and might no longer be pre-translated. You can still <a href="https://docs.djangoproject.com/en/dev/topics/i18n/translation/#localization-how-to-create-language-files">create language files with Django</a> if you wish to localize them.</li> +<li><code>APIException</code> subclasses could previously take could previously take any arbitrary type in the <code>detail</code> argument. These exceptions now use translatable text strings, and as a result call <code>force_text</code> on the <code>detail</code> argument, which <em>must be a string</em>. If you need complex arguments to an <code>APIException</code> class, you should subclass it and override the <code>__init__()</code> method. Typically you'll instead want to use a custom exception handler to provide for non-standard error responses.</li> </ul> <hr /> <h2 id="whats-coming-next">What's coming next</h2> diff --git a/topics/project-management/index.html b/topics/project-management/index.html index e1e7d756..91fa2359 100644 --- a/topics/project-management/index.html +++ b/topics/project-management/index.html @@ -432,6 +432,8 @@ The following people are the current maintenance team. Please checkmark your nam #### New members. If you wish to be considered for this or a future date, please comment against this or subsequent issues. + +To modify this process for future maintenance cycles make a pull request to the [project management](http://www.django-rest-framework.org/topics/project-management/) documentation. </code></pre> <h4 id="responsibilities-of-team-members">Responsibilities of team members</h4> <p>Team members have the following responsibilities.</p> @@ -475,6 +477,8 @@ Checklist: - [ ] Make a release announcement on the [discussion group](https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework). - [ ] Make a release announcement on twitter. - [ ] Close the milestone on GitHub. + +To modify this process for future releases make a pull request to the [project management](http://www.django-rest-framework.org/topics/project-management/) documentation. </code></pre> <p>When pushing the release to PyPI ensure that your environment has been installed from our development <code>requirement.txt</code>, so that documentation and PyPI installs are consistently being built against a pinned set of packages.</p> <hr /> @@ -488,6 +492,7 @@ Checklist: <li>Ensure <code>@jamie</code> has back-up access to the <code>django-rest-framework.org</code> domain setup and admin.</li> <li>Document ownership of the <a href="http://restframework.herokuapp.com/">live example</a> API.</li> <li>Document ownership of the <a href="https://groups.google.com/forum/#!forum/django-rest-framework">mailing list</a> and IRC channel.</li> +<li>Document ownership and management of the security mailing list.</li> </ul> </div> diff --git a/topics/release-notes/index.html b/topics/release-notes/index.html index fb25f224..389c9b79 100644 --- a/topics/release-notes/index.html +++ b/topics/release-notes/index.html @@ -439,6 +439,25 @@ </code></pre> <hr /> <h2 id="30x-series">3.0.x series</h2> +<h3 id="303">3.0.3</h3> +<p><strong>Date</strong>: <a href="https://github.com/tomchristie/django-rest-framework/issues?q=milestone%3A%223.0.3+Release%22">8th January 2015</a>.</p> +<ul> +<li>Fix <code>MinValueValidator</code> on <code>models.DateField</code>. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2369">#2369</a>)</li> +<li>Fix serializer missing context when pagination is used. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2355">#2355</a>)</li> +<li>Namespaced router URLs are now supported by the <code>DefaultRouter</code>. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2351">#2351</a>)</li> +<li><code>required=False</code> allows omission of value for output. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2342">#2342</a>)</li> +<li>Use textarea input for <code>models.TextField</code>. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2340">#2340</a>)</li> +<li>Use custom <code>ListSerializer</code> for pagination if required. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2331">#2331</a>, <a href="https://github.com/tomchristie/django-rest-framework/issues/2327">#2327</a>)</li> +<li>Better behavior with null and '' for blank HTML fields. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2330">#2330</a>)</li> +<li>Ensure fields in <code>exclude</code> are model fields. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2319">#2319</a>)</li> +<li>Fix <code>IntegerField</code> and <code>max_length</code> argument incompatibility. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2317">#2317</a>)</li> +<li>Fix the YAML encoder for 3.0 serializers. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2315">#2315</a>, <a href="https://github.com/tomchristie/django-rest-framework/issues/2283">#2283</a>)</li> +<li>Fix the behavior of empty HTML fields. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2311">#2311</a>, <a href="https://github.com/tomchristie/django-rest-framework/issues/1101">#1101</a>)</li> +<li>Fix Metaclass attribute depth ignoring fields attribute. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2287">#2287</a>)</li> +<li>Fix <code>format_suffix_patterns</code> to work with Django's <code>i18n_patterns</code>. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2278">#2278</a>)</li> +<li>Ability to customize router URLs for custom actions, using <code>url_path</code>. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2010">#2010</a>)</li> +<li>Don't install Django REST Framework as egg. (<a href="https://github.com/tomchristie/django-rest-framework/issues/2386">#2386</a>)</li> +</ul> <h3 id="302">3.0.2</h3> <p><strong>Date</strong>: <a href="https://github.com/tomchristie/django-rest-framework/issues?q=milestone%3A%223.0.2+Release%22">17th December 2014</a>.</p> <ul> @@ -983,8 +1002,8 @@ <p>For older release notes, <a href="../../old-release-notes">please see the GitHub repo</a>.</p> <!-- 3.0.1 --> -<!-- 3.0.2 --> - +<p><!-- 3.0.2 --> +<!-- 3.0.3 --></p> </div> <!--/span--> |
