diff options
Diffstat (limited to 'api-guide')
| -rw-r--r-- | api-guide/authentication.html | 1 | ||||
| -rw-r--r-- | api-guide/content-negotiation.html | 1 | ||||
| -rw-r--r-- | api-guide/exceptions.html | 1 | ||||
| -rw-r--r-- | api-guide/fields.html | 1 | ||||
| -rw-r--r-- | api-guide/filtering.html | 1 | ||||
| -rw-r--r-- | api-guide/format-suffixes.html | 1 | ||||
| -rw-r--r-- | api-guide/generic-views.html | 9 | ||||
| -rw-r--r-- | api-guide/pagination.html | 1 | ||||
| -rw-r--r-- | api-guide/parsers.html | 1 | ||||
| -rw-r--r-- | api-guide/permissions.html | 9 | ||||
| -rw-r--r-- | api-guide/relations.html | 1 | ||||
| -rw-r--r-- | api-guide/renderers.html | 1 | ||||
| -rw-r--r-- | api-guide/requests.html | 1 | ||||
| -rw-r--r-- | api-guide/responses.html | 1 | ||||
| -rw-r--r-- | api-guide/reverse.html | 1 | ||||
| -rw-r--r-- | api-guide/routers.html | 5 | ||||
| -rw-r--r-- | api-guide/serializers.html | 1 | ||||
| -rw-r--r-- | api-guide/settings.html | 4 | ||||
| -rw-r--r-- | api-guide/status-codes.html | 1 | ||||
| -rw-r--r-- | api-guide/testing.html | 1 | ||||
| -rw-r--r-- | api-guide/throttling.html | 1 | ||||
| -rw-r--r-- | api-guide/views.html | 1 | ||||
| -rw-r--r-- | api-guide/viewsets.html | 1 | 
23 files changed, 35 insertions, 11 deletions
| diff --git a/api-guide/authentication.html b/api-guide/authentication.html index 9b11fbe5..c05b60aa 100644 --- a/api-guide/authentication.html +++ b/api-guide/authentication.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/content-negotiation.html b/api-guide/content-negotiation.html index de57feff..863c0720 100644 --- a/api-guide/content-negotiation.html +++ b/api-guide/content-negotiation.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/exceptions.html b/api-guide/exceptions.html index b06b3ebe..0f6a1f0b 100644 --- a/api-guide/exceptions.html +++ b/api-guide/exceptions.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/fields.html b/api-guide/fields.html index 4ca9b1fb..91852e00 100644 --- a/api-guide/fields.html +++ b/api-guide/fields.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/filtering.html b/api-guide/filtering.html index 5f401df9..cef40e9e 100644 --- a/api-guide/filtering.html +++ b/api-guide/filtering.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/format-suffixes.html b/api-guide/format-suffixes.html index 7bbedae8..7a551743 100644 --- a/api-guide/format-suffixes.html +++ b/api-guide/format-suffixes.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/generic-views.html b/api-guide/generic-views.html index be6e19f1..9ae8efff 100644 --- a/api-guide/generic-views.html +++ b/api-guide/generic-views.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> @@ -279,10 +280,6 @@ class UserList(generics.ListCreateAPIView):  <li><code>lookup_field</code> - The model field that should be used to for performing object lookup of individual model instances.  Defaults to <code>'pk'</code>.  Note that when using hyperlinked APIs you'll need to ensure that <em>both</em> the API views <em>and</em> the serializer classes set the lookup fields if you need to use a custom value.</li>  <li><code>lookup_url_kwarg</code> - The URL keyword argument that should be used for object lookup.  The URL conf should include a keyword argument corresponding to this value.  If unset this defaults to using the same value as <code>lookup_field</code>.</li>  </ul> -<p><strong>Shortcuts</strong>:</p> -<ul> -<li><code>model</code> - This shortcut may be used instead of setting either (or both) of the <code>queryset</code>/<code>serializer_class</code> attributes, although using the explicit style is generally preferred.  If used instead of <code>serializer_class</code>, then <code>DEFAULT_MODEL_SERIALIZER_CLASS</code> setting will determine the base serializer class.  Note that <code>model</code> is only ever used for generating a default queryset or serializer class - the <code>queryset</code> and <code>serializer_class</code> attributes are always preferred if provided.</li> -</ul>  <p><strong>Pagination</strong>:</p>  <p>The following attributes are used to control pagination when used with list views.</p>  <ul> @@ -295,6 +292,10 @@ class UserList(generics.ListCreateAPIView):  <ul>  <li><code>filter_backends</code> - A list of filter backend classes that should be used for filtering the queryset.  Defaults to the same value as the <code>DEFAULT_FILTER_BACKENDS</code> setting.</li>  </ul> +<p><strong>Deprecated attributes</strong>:</p> +<ul> +<li><code>model</code> - This shortcut may be used instead of setting either (or both) of the <code>queryset</code>/<code>serializer_class</code> attributes. The explicit style is preferred over the <code>.model</code> shortcut, and usage of this attribute is now deprecated.</li> +</ul>  <h3 id="methods">Methods</h3>  <p><strong>Base methods</strong>:</p>  <h4 id="get_querysetself"><code>get_queryset(self)</code></h4> diff --git a/api-guide/pagination.html b/api-guide/pagination.html index c462a7a6..3f80ea19 100644 --- a/api-guide/pagination.html +++ b/api-guide/pagination.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/parsers.html b/api-guide/parsers.html index 7edce817..52ee597a 100644 --- a/api-guide/parsers.html +++ b/api-guide/parsers.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/permissions.html b/api-guide/permissions.html index afc18e56..202da323 100644 --- a/api-guide/permissions.html +++ b/api-guide/permissions.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> @@ -292,7 +293,7 @@ def example_view(request, format=None):  <p>The <code>IsAuthenticatedOrReadOnly</code> will allow authenticated users to perform any request.  Requests for unauthorised users will only be permitted if the request method is one of the "safe" methods; <code>GET</code>, <code>HEAD</code> or <code>OPTIONS</code>.</p>  <p>This permission is suitable if you want to your API to allow read permissions to anonymous users, and only allow write permissions to authenticated users.</p>  <h2 id="djangomodelpermissions">DjangoModelPermissions</h2> -<p>This permission class ties into Django's standard <code>django.contrib.auth</code> <a href="https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-permissions">model permissions</a>.  When applied to a view that has a <code>.model</code> property, authorization will only be granted if the user <em>is authenticated</em> and has the <em>relevant model permissions</em> assigned.</p> +<p>This permission class ties into Django's standard <code>django.contrib.auth</code> <a href="https://docs.djangoproject.com/en/dev/topics/auth/customizing/#custom-permissions">model permissions</a>.  This permission must only be applied to views that has a <code>.queryset</code> property set. Authorization will only be granted if the user <em>is authenticated</em> and has the <em>relevant model permissions</em> assigned.</p>  <ul>  <li><code>POST</code> requests require the user to have the <code>add</code> permission on the model.</li>  <li><code>PUT</code> and <code>PATCH</code> requests require the user to have the <code>change</code> permission on the model.</li> @@ -300,11 +301,15 @@ def example_view(request, format=None):  </ul>  <p>The default behaviour can also be overridden to support custom model permissions.  For example, you might want to include a <code>view</code> model permission for <code>GET</code> requests.</p>  <p>To use custom model permissions, override <code>DjangoModelPermissions</code> and set the <code>.perms_map</code> property.  Refer to the source code for details.</p> +<h4 id="using-with-views-that-do-not-include-a-queryset-attribute">Using with views that do not include a <code>queryset</code> attribute.</h4> +<p>If you're using this permission with a view that uses an overridden <code>get_queryset()</code> method there may not be a <code>queryset</code> attribute on the view. In this case we suggest also marking the view with a sential queryset, so that this class can determine the required permissions. For example:</p> +<pre class="prettyprint lang-py"><code>queryset = User.objects.none()  # Required for DjangoModelPermissions +</code></pre>  <h2 id="djangomodelpermissionsoranonreadonly">DjangoModelPermissionsOrAnonReadOnly</h2>  <p>Similar to <code>DjangoModelPermissions</code>, but also allows unauthenticated users to have read-only access to the API.</p>  <h2 id="djangoobjectpermissions">DjangoObjectPermissions</h2>  <p>This permission class ties into Django's standard <a href="https://docs.djangoproject.com/en/dev/topics/auth/customizing/#handling-object-permissions">object permissions framework</a> that allows per-object permissions on models.  In order to use this permission class, you'll also need to add a permission backend that supports object-level permissions, such as <a href="https://github.com/lukaszb/django-guardian">django-guardian</a>.</p> -<p>When applied to a view that has a <code>.model</code> property, authorization will only be granted if the user <em>is authenticated</em> and has the <em>relevant per-object permissions</em> and <em>relevant model permissions</em> assigned.</p> +<p>As with <code>DjangoModelPermissions</code>, this permission must only be applied to views that have a <code>.queryset</code> property. Authorization will only be granted if the user <em>is authenticated</em> and has the <em>relevant per-object permissions</em> and <em>relevant model permissions</em> assigned.</p>  <ul>  <li><code>POST</code> requests require the user to have the <code>add</code> permission on the model instance.</li>  <li><code>PUT</code> and <code>PATCH</code> requests require the user to have the <code>change</code> permission on the model instance.</li> diff --git a/api-guide/relations.html b/api-guide/relations.html index faa7a229..b4da5ccd 100644 --- a/api-guide/relations.html +++ b/api-guide/relations.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/renderers.html b/api-guide/renderers.html index cf22546f..5678f5e0 100644 --- a/api-guide/renderers.html +++ b/api-guide/renderers.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/requests.html b/api-guide/requests.html index 6c72463d..5b2e7286 100644 --- a/api-guide/requests.html +++ b/api-guide/requests.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/responses.html b/api-guide/responses.html index 0998c35d..19d7ddff 100644 --- a/api-guide/responses.html +++ b/api-guide/responses.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/reverse.html b/api-guide/reverse.html index 9ac1f216..e6f687fa 100644 --- a/api-guide/reverse.html +++ b/api-guide/reverse.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/routers.html b/api-guide/routers.html index 77c6e585..b5df3b0f 100644 --- a/api-guide/routers.html +++ b/api-guide/routers.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> @@ -242,8 +243,8 @@ urlpatterns = router.urls  </ul>  <hr />  <p><strong>Note</strong>: The <code>base_name</code> argument is used to specify the initial part of the view name pattern.  In the example above, that's the <code>user</code> or <code>account</code> part.</p> -<p>Typically you won't <em>need</em> to specify the <code>base-name</code> argument, but if you have a viewset where you've defined a custom <code>get_queryset</code> method, then the viewset may not have any <code>.model</code> or <code>.queryset</code> attribute set.  If you try to register that viewset you'll see an error like this:</p> -<pre class="prettyprint lang-py"><code>'base_name' argument not specified, and could not automatically determine the name from the viewset, as it does not have a '.model' or '.queryset' attribute. +<p>Typically you won't <em>need</em> to specify the <code>base-name</code> argument, but if you have a viewset where you've defined a custom <code>get_queryset</code> method, then the viewset may not have a <code>.queryset</code> attribute set.  If you try to register that viewset you'll see an error like this:</p> +<pre class="prettyprint lang-py"><code>'base_name' argument not specified, and could not automatically determine the name from the viewset, as it does not have a '.queryset' attribute.  </code></pre>  <p>This means you'll need to explicitly set the <code>base_name</code> argument when registering the viewset, as it could not be automatically determined from the model name.</p>  <hr /> diff --git a/api-guide/serializers.html b/api-guide/serializers.html index f90aff16..3a4f9875 100644 --- a/api-guide/serializers.html +++ b/api-guide/serializers.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/settings.html b/api-guide/settings.html index 59823263..4b476851 100644 --- a/api-guide/settings.html +++ b/api-guide/settings.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> @@ -275,9 +276,6 @@ print api_settings.DEFAULT_AUTHENTICATION_CLASSES  <hr />  <h2 id="generic-view-settings">Generic view settings</h2>  <p><em>The following settings control the behavior of the generic class based views.</em></p> -<h4 id="default_model_serializer_class">DEFAULT_MODEL_SERIALIZER_CLASS</h4> -<p>A class that determines the default type of model serializer that should be used by a generic view if <code>model</code> is specified, but <code>serializer_class</code> is not provided.</p> -<p>Default: <code>'rest_framework.serializers.ModelSerializer'</code></p>  <h4 id="default_pagination_serializer_class">DEFAULT_PAGINATION_SERIALIZER_CLASS</h4>  <p>A class the determines the default serialization style for paginated responses.</p>  <p>Default: <code>rest_framework.pagination.PaginationSerializer</code></p> diff --git a/api-guide/status-codes.html b/api-guide/status-codes.html index 070d004f..4df4bc0f 100644 --- a/api-guide/status-codes.html +++ b/api-guide/status-codes.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/testing.html b/api-guide/testing.html index c30b1e95..4f23c943 100644 --- a/api-guide/testing.html +++ b/api-guide/testing.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/throttling.html b/api-guide/throttling.html index 49642481..71db0319 100644 --- a/api-guide/throttling.html +++ b/api-guide/throttling.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/views.html b/api-guide/views.html index 934c0aae..0118412b 100644 --- a/api-guide/views.html +++ b/api-guide/views.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> diff --git a/api-guide/viewsets.html b/api-guide/viewsets.html index 454d7d82..2e5915a9 100644 --- a/api-guide/viewsets.html +++ b/api-guide/viewsets.html @@ -121,6 +121,7 @@ a.fusion-poweredby {                    <li><a href="http://www.django-rest-framework.org/topics/rest-framework-2-announcement">2.0 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.2-announcement">2.2 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/2.3-announcement">2.3 Announcement</a></li> +                  <li><a href="http://www.django-rest-framework.org/topics/2.4-announcement">2.4 Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/kickstarter-announcement">Kickstarter Announcement</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/release-notes">Release Notes</a></li>                    <li><a href="http://www.django-rest-framework.org/topics/credits">Credits</a></li> | 
