From d8dbd8679080035de4e785a8e7b998fb01f4052b Mon Sep 17 00:00:00 2001 From: Xavier Ordoquy Date: Sat, 10 Jan 2015 10:41:12 +0100 Subject: Update documentation --- api-guide/generic-views/index.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'api-guide/generic-views/index.html') diff --git a/api-guide/generic-views/index.html b/api-guide/generic-views/index.html index 18910b4e..675220d7 100644 --- a/api-guide/generic-views/index.html +++ b/api-guide/generic-views/index.html @@ -666,6 +666,7 @@ class UserList(generics.ListCreateAPIView):

Mixins

The mixin classes provide the actions that are used to provide the basic view behavior. Note that the mixin classes provide action methods rather than defining the handler methods, such as .get() and .post(), directly. This allows for more flexible composition of behavior.

+

The mixin classes can be imported from rest_framework.mixins.

ListModelMixin

Provides a .list(request, *args, **kwargs) method, that implements listing a queryset.

If the queryset is populated, this returns a 200 OK response, with a serialized representation of the queryset as the body of the response. The response data may optionally be paginated.

@@ -688,6 +689,7 @@ class UserList(generics.ListCreateAPIView):

Concrete View Classes

The following classes are the concrete generic views. If you're using generic views this is normally the level you'll be working at unless you need heavily customized behavior.

+

The view classes can be imported from rest_framework.generics.

CreateAPIView

Used for create-only endpoints.

Provides a post method handler.

-- cgit v1.2.3