From 33f1cd24cd84cc7e0ec2a76d1d8fed04dd401435 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Thu, 20 Feb 2014 14:55:10 +0000 Subject: Latest docs build --- api-guide/generic-views.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api-guide/generic-views.html') diff --git a/api-guide/generic-views.html b/api-guide/generic-views.html index 284ecf4e..0e349ca3 100644 --- a/api-guide/generic-views.html +++ b/api-guide/generic-views.html @@ -299,7 +299,7 @@ class UserList(generics.ListCreateAPIView): self.check_object_permissions(self.request, obj) return obj -

Note that if your API doesn't include any object level permissions, you may optionally exclude the `self.check_object_permissions, and simply return the object from theget_object_or_404` lookup.

+

Note that if your API doesn't include any object level permissions, you may optionally exclude the self.check_object_permissions, and simply return the object from the get_object_or_404 lookup.

get_filter_backends(self)

Returns the classes that should be used to filter the queryset. Defaults to returning the filter_backends attribute.

May be override to provide more complex behavior with filters, as using different (or even exlusive) lists of filter_backends depending on different criteria.

-- cgit v1.2.3