mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-12-04 23:44:07 +03:00
Fix typo
This commit is contained in:
parent
cd21c37d0f
commit
8eb405f4b2
|
@ -122,7 +122,7 @@
|
||||||
<li><a href="#user">.user</a></li>
|
<li><a href="#user">.user</a></li>
|
||||||
<li><a href="#auth">.auth</a></li>
|
<li><a href="#auth">.auth</a></li>
|
||||||
<li><a href="#authenticators">.authenticators</a></li>
|
<li><a href="#authenticators">.authenticators</a></li>
|
||||||
<li class="main"><a href="#browser-enhancments">Browser enhancments</a></li>
|
<li class="main"><a href="#browser-enhancements">Browser enhancements</a></li>
|
||||||
<li><a href="#method">.method</a></li>
|
<li><a href="#method">.method</a></li>
|
||||||
<li><a href="#content_type">.content_type</a></li>
|
<li><a href="#content_type">.content_type</a></li>
|
||||||
<li><a href="#stream">.stream</a></li>
|
<li><a href="#stream">.stream</a></li>
|
||||||
|
@ -180,7 +180,7 @@
|
||||||
<p>The <code>APIView</code> class or <code>@api_view</code> decorator will ensure that this property is automatically to a list of <code>Authentication</code> instances, based on the <code>authentication_classes</code> set on the view or based on the <code>DEFAULT_AUTHENTICATORS</code> setting.</p>
|
<p>The <code>APIView</code> class or <code>@api_view</code> decorator will ensure that this property is automatically to a list of <code>Authentication</code> instances, based on the <code>authentication_classes</code> set on the view or based on the <code>DEFAULT_AUTHENTICATORS</code> setting.</p>
|
||||||
<p>You won't typically need to access this property.</p>
|
<p>You won't typically need to access this property.</p>
|
||||||
<hr />
|
<hr />
|
||||||
<h1 id="browser-enhancments">Browser enhancments</h1>
|
<h1 id="browser-enhancements">Browser enhancements</h1>
|
||||||
<p>REST framework supports a few browser enhancments such as broser-based <code>PUT</code> and <code>DELETE</code> forms.</p>
|
<p>REST framework supports a few browser enhancments such as broser-based <code>PUT</code> and <code>DELETE</code> forms.</p>
|
||||||
<h2 id="method">.method</h2>
|
<h2 id="method">.method</h2>
|
||||||
<p><code>request.method</code> returns the <strong>uppercased</strong> string representation of the request's HTTP method.</p>
|
<p><code>request.method</code> returns the <strong>uppercased</strong> string representation of the request's HTTP method.</p>
|
||||||
|
|
|
@ -144,7 +144,7 @@ class GroupSerializer(serializers.HyperlinkedModelSerializer):
|
||||||
</code></pre>
|
</code></pre>
|
||||||
<p>Notice that we're using hyperlinked relations in this case, with <code>HyperlinkedModelSerializer</code>. You can also use primary key and various other relationships, but hyperlinking is good RESTful design.</p>
|
<p>Notice that we're using hyperlinked relations in this case, with <code>HyperlinkedModelSerializer</code>. You can also use primary key and various other relationships, but hyperlinking is good RESTful design.</p>
|
||||||
<h2 id="views">Views</h2>
|
<h2 id="views">Views</h2>
|
||||||
<p>Right, we'd better right some views then. Open <code>quickstart/views.py</code> and get typing.</p>
|
<p>Right, we'd better write some views then. Open <code>quickstart/views.py</code> and get typing.</p>
|
||||||
<pre class="prettyprint lang-py"><code>from django.contrib.auth.models import User, Group
|
<pre class="prettyprint lang-py"><code>from django.contrib.auth.models import User, Group
|
||||||
from rest_framework import generics
|
from rest_framework import generics
|
||||||
from rest_framework.decorators import api_view
|
from rest_framework.decorators import api_view
|
||||||
|
|
Loading…
Reference in New Issue
Block a user