mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 13:04:03 +03:00
Deployed 22565d9a
with MkDocs version: 0.16.2
This commit is contained in:
parent
91a7179528
commit
5b0fe4b9f4
File diff suppressed because one or more lines are too long
|
@ -509,7 +509,7 @@
|
|||
<li>Fixed a deprecation warning in serializers.ModelField <a href="https://github.com/encode/django-rest-framework/issues/5058">#5058</a></li>
|
||||
<li>Added a more explicit error message when <code>get_queryset</code> returned <code>None</code> <a href="https://github.com/encode/django-rest-framework/issues/5348">#5348</a></li>
|
||||
<li>Fix docs for Response <code>data</code> description <a href="https://github.com/encode/django-rest-framework/issues/5361">#5361</a></li>
|
||||
<li>Fix <strong>pychache</strong>/.pyc excludes when packaging <a href="https://github.com/encode/django-rest-framework/issues/5373">#5373</a></li>
|
||||
<li>Fix <strong>pycache</strong>/.pyc excludes when packaging <a href="https://github.com/encode/django-rest-framework/issues/5373">#5373</a></li>
|
||||
<li>Fix default value handling for dotted sources <a href="https://github.com/encode/django-rest-framework/issues/5375">#5375</a></li>
|
||||
<li>Ensure content_type is set when passing empty body to RequestFactory <a href="https://github.com/encode/django-rest-framework/issues/5351">#5351</a></li>
|
||||
<li>Fix ErrorDetail Documentation <a href="https://github.com/encode/django-rest-framework/issues/5380">#5380</a></li>
|
||||
|
@ -518,7 +518,7 @@
|
|||
<li>Fix ModelSerializer custom named fields with source on model <a href="https://github.com/encode/django-rest-framework/issues/5388">#5388</a></li>
|
||||
<li>Fixed the MultipleFieldLookupMixin documentation example to properly check for object level permission <a href="https://github.com/encode/django-rest-framework/issues/5398">#5398</a></li>
|
||||
<li>Update get_object() example in permissions.md <a href="https://github.com/encode/django-rest-framework/issues/5401">#5401</a></li>
|
||||
<li>Fix authtoken managment command <a href="https://github.com/encode/django-rest-framework/issues/5415">#5415</a></li>
|
||||
<li>Fix authtoken management command <a href="https://github.com/encode/django-rest-framework/issues/5415">#5415</a></li>
|
||||
<li>Fix schema generation markdown <a href="https://github.com/encode/django-rest-framework/issues/5421">#5421</a></li>
|
||||
<li>Allow <code>ChoiceField.choices</code> to be set dynamically <a href="https://github.com/encode/django-rest-framework/issues/5426">#5426</a></li>
|
||||
<li>Add the project layout to the quickstart <a href="https://github.com/encode/django-rest-framework/issues/5434">#5434</a></li>
|
||||
|
@ -596,14 +596,14 @@
|
|||
<ul>
|
||||
<li>Support for Safari & IE in API docs. (<a href="https://github.com/encode/django-rest-framework/issues/4959">#4959</a>, <a href="https://github.com/encode/django-rest-framework/issues/4961">#4961</a>)</li>
|
||||
<li>Add missing <code>mark_safe</code> in API docs template tags. (<a href="https://github.com/encode/django-rest-framework/issues/4952">#4952</a>, <a href="https://github.com/encode/django-rest-framework/issues/4953">#4953</a>)</li>
|
||||
<li>Add missing glyicon fonts. (<a href="https://github.com/encode/django-rest-framework/issues/4950">#4950</a>, <a href="https://github.com/encode/django-rest-framework/issues/4951">#4951</a>)</li>
|
||||
<li>Add missing glyphicon fonts. (<a href="https://github.com/encode/django-rest-framework/issues/4950">#4950</a>, <a href="https://github.com/encode/django-rest-framework/issues/4951">#4951</a>)</li>
|
||||
<li>Fix One-to-one fields in API docs. (<a href="https://github.com/encode/django-rest-framework/issues/4955">#4955</a>, <a href="https://github.com/encode/django-rest-framework/issues/4956">#4956</a>)</li>
|
||||
<li>Test clean ups. (<a href="https://github.com/encode/django-rest-framework/issues/4949">#4949</a>)</li>
|
||||
</ul>
|
||||
<h3 id="361"><a class="toclink" href="#361">3.6.1</a></h3>
|
||||
<p><strong>Date</strong>: <a href="https://github.com/encode/django-rest-framework/issues?q=milestone%3A%223.6.1+Release%22">9th March 2017</a></p>
|
||||
<ul>
|
||||
<li>Ensure <code>markdown</code> dependancy is optional. (<a href="https://github.com/encode/django-rest-framework/issues/4947">#4947</a>)</li>
|
||||
<li>Ensure <code>markdown</code> dependency is optional. (<a href="https://github.com/encode/django-rest-framework/issues/4947">#4947</a>)</li>
|
||||
</ul>
|
||||
<h3 id="360"><a class="toclink" href="#360">3.6.0</a></h3>
|
||||
<p><strong>Date</strong>: <a href="https://github.com/encode/django-rest-framework/issues?q=milestone%3A%223.6.0+Release%22">9th March 2017</a></p>
|
||||
|
@ -710,7 +710,7 @@
|
|||
<h3 id="343"><a class="toclink" href="#343">3.4.3</a></h3>
|
||||
<p><strong>Date</strong>: <a href="https://github.com/encode/django-rest-framework/issues?q=milestone%3A%223.4.3+Release%22">5th August 2016</a></p>
|
||||
<ul>
|
||||
<li>Include fallaback for users of older TemplateHTMLRenderer internal API. (<a href="https://github.com/encode/django-rest-framework/issues/4361">#4361</a>)</li>
|
||||
<li>Include fallback for users of older TemplateHTMLRenderer internal API. (<a href="https://github.com/encode/django-rest-framework/issues/4361">#4361</a>)</li>
|
||||
</ul>
|
||||
<h3 id="342"><a class="toclink" href="#342">3.4.2</a></h3>
|
||||
<p><strong>Date</strong>: <a href="https://github.com/encode/django-rest-framework/issues?q=milestone%3A%223.4.2+Release%22">5th August 2016</a></p>
|
||||
|
@ -806,7 +806,7 @@
|
|||
<li>ListSerializer doesn't handle unique_together constraints. (<a href="https://github.com/encode/django-rest-framework/issues/3970">#3970</a>)</li>
|
||||
<li>Add missing migration file. (<a href="https://github.com/encode/django-rest-framework/issues/3968">#3968</a>)</li>
|
||||
<li><code>OrderingFilter</code> should call <code>get_serializer_class()</code> to determine default fields. (<a href="https://github.com/encode/django-rest-framework/issues/3964">#3964</a>)</li>
|
||||
<li>Remove old django checks from tests and compat. (<a href="https://github.com/encode/django-rest-framework/issues/3953">#3953</a>)</li>
|
||||
<li>Remove old Django checks from tests and compat. (<a href="https://github.com/encode/django-rest-framework/issues/3953">#3953</a>)</li>
|
||||
<li>Support callable as the value of <code>initial</code> for any <code>serializer.Field</code>. (<a href="https://github.com/encode/django-rest-framework/issues/3943">#3943</a>)</li>
|
||||
<li>Prevented unnecessary distinct() call in SearchFilter. (<a href="https://github.com/encode/django-rest-framework/issues/3938">#3938</a>)</li>
|
||||
<li>Fix None UUID ForeignKey serialization. (<a href="https://github.com/encode/django-rest-framework/issues/3936">#3936</a>)</li>
|
||||
|
@ -977,7 +977,7 @@
|
|||
<li>Fix behavior of <code>allow_blank=False</code> when used with <code>trim_whitespace=True</code>. (<a href="https://github.com/encode/django-rest-framework/issues/2712">#2712</a>)</li>
|
||||
<li>Fix issue with some field combinations incorrectly mapping to an invalid <code>allow_blank</code> argument. (<a href="https://github.com/encode/django-rest-framework/issues/3011">#3011</a>)</li>
|
||||
<li>Fix for output representations with prefetches and modified querysets. (<a href="https://github.com/encode/django-rest-framework/issues/2704">#2704</a>, <a href="https://github.com/encode/django-rest-framework/issues/2727">#2727</a>)</li>
|
||||
<li>Fix assertion error when CursorPagination is provided with certains invalid query parameters. (#2920)<a href="https://github.com/encode/django-rest-framework/issues/2920">gh2920</a>.</li>
|
||||
<li>Fix assertion error when CursorPagination is provided with certain invalid query parameters. (#2920)<a href="https://github.com/encode/django-rest-framework/issues/2920">gh2920</a>.</li>
|
||||
<li>Fix <code>UnicodeDecodeError</code> when invalid characters included in header with <code>TokenAuthentication</code>. (<a href="https://github.com/encode/django-rest-framework/issues/2928">#2928</a>)</li>
|
||||
<li>Fix transaction rollbacks with <code>@non_atomic_requests</code> decorator. (<a href="https://github.com/encode/django-rest-framework/issues/3016">#3016</a>)</li>
|
||||
<li>Fix duplicate results issue with Oracle databases using <code>SearchFilter</code>. (<a href="https://github.com/encode/django-rest-framework/issues/2935">#2935</a>)</li>
|
||||
|
@ -1012,7 +1012,7 @@
|
|||
<li>Use default reason phrases from HTTP standard. (<a href="https://github.com/encode/django-rest-framework/issues/2764">#2764</a>, <a href="https://github.com/encode/django-rest-framework/issues/2763">#2763</a>)</li>
|
||||
<li>Raise error when <code>ModelSerializer</code> used with abstract model. (<a href="https://github.com/encode/django-rest-framework/issues/2757">#2757</a>, <a href="https://github.com/encode/django-rest-framework/issues/2630">#2630</a>)</li>
|
||||
<li>Handle reversal of non-API view_name in <code>HyperLinkedRelatedField</code> (<a href="https://github.com/encode/django-rest-framework/issues/2724">#2724</a>, <a href="https://github.com/encode/django-rest-framework/issues/2711">#2711</a>)</li>
|
||||
<li>Dont require pk strictly for related fields. (<a href="https://github.com/encode/django-rest-framework/issues/2745">#2745</a>, <a href="https://github.com/encode/django-rest-framework/issues/2754">#2754</a>)</li>
|
||||
<li>Don't require pk strictly for related fields. (<a href="https://github.com/encode/django-rest-framework/issues/2745">#2745</a>, <a href="https://github.com/encode/django-rest-framework/issues/2754">#2754</a>)</li>
|
||||
<li>Metadata detects null boolean field type. (<a href="https://github.com/encode/django-rest-framework/issues/2762">#2762</a>)</li>
|
||||
<li>Proper handling of depth in nested serializers. (<a href="https://github.com/encode/django-rest-framework/issues/2798">#2798</a>)</li>
|
||||
<li>Display viewset without paginator. (<a href="https://github.com/encode/django-rest-framework/issues/2807">#2807</a>)</li>
|
||||
|
|
|
@ -457,7 +457,7 @@ request.data # Handles arbitrary data. Works for 'POST', 'PUT' and 'PATCH' met
|
|||
<p>The wrappers also provide behaviour such as returning <code>405 Method Not Allowed</code> responses when appropriate, and handling any <code>ParseError</code> exception that occurs when accessing <code>request.data</code> with malformed input.</p>
|
||||
<h2 id="pulling-it-all-together"><a class="toclink" href="#pulling-it-all-together">Pulling it all together</a></h2>
|
||||
<p>Okay, let's go ahead and start using these new components to write a few views.</p>
|
||||
<p>We don't need our <code>JSONResponse</code> class in <code>views.py</code> anymore, so go ahead and delete that. Once that's done we can start refactoring our views slightly.</p>
|
||||
<p>We don't need our <code>JSONResponse</code> class in <code>views.py</code> any more, so go ahead and delete that. Once that's done we can start refactoring our views slightly.</p>
|
||||
<pre><code>from rest_framework import status
|
||||
from rest_framework.decorators import api_view
|
||||
from rest_framework.response import Response
|
||||
|
|
Loading…
Reference in New Issue
Block a user