mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 09:36:49 +03:00
Add import notes in docs. Closes #2357
This commit is contained in:
parent
00531ec937
commit
a636320ff3
|
@ -214,6 +214,8 @@ You won't typically need to override the following methods, although you might n
|
|||
|
||||
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.
|
||||
|
@ -258,6 +260,8 @@ If an object is deleted this returns a `204 No Content` response, otherwise it w
|
|||
|
||||
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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user