aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/generic-views.md
diff options
context:
space:
mode:
authorTom Christie2013-05-07 12:25:41 +0100
committerTom Christie2013-05-07 12:25:41 +0100
commitd71a5533f9a8787652244dfb16af37fb7d9059fb (patch)
tree9d7d4ad3e15a55d8a5e67c0888d91fd2f88edc61 /docs/api-guide/generic-views.md
parentb70c9cc107743b45edc50c4b4e5e6a7d5a856f01 (diff)
downloaddjango-rest-framework-d71a5533f9a8787652244dfb16af37fb7d9059fb.tar.bz2
allow_empty -> pending deprecation in preference of overridden get_queryset.
Diffstat (limited to 'docs/api-guide/generic-views.md')
-rwxr-xr-xdocs/api-guide/generic-views.md3
1 files changed, 1 insertions, 2 deletions
diff --git a/docs/api-guide/generic-views.md b/docs/api-guide/generic-views.md
index d430710d..59912568 100755
--- a/docs/api-guide/generic-views.md
+++ b/docs/api-guide/generic-views.md
@@ -75,10 +75,9 @@ The following attibutes are used to control pagination when used with list views
* `pagination_serializer_class` - The pagination serializer class to use when determining the style of paginated responses. Defaults to the same value as the `DEFAULT_PAGINATION_SERIALIZER_CLASS` setting.
* `page_kwarg` - The name of a URL kwarg or URL query parameter which can be used by the client to control which page is requested. Defaults to `'page'`.
-**Other**:
+**Filtering**:
* `filter_backend` - The filter backend class that should be used for filtering the queryset. Defaults to the same value as the `FILTER_BACKEND` setting.
-* `allow_empty` - Determines if an empty list should successfully display zero results, or return a 404 response. Defaults to `True`, meaning empty lists will return sucessful `200 OK` responses, with zero results.
### Methods