mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 05:04:31 +03:00
Fix section headings in generic views docs
This commit is contained in:
parent
1ceca69e5f
commit
41d27b1a30
|
@ -119,17 +119,17 @@ Extends: [SingleObjectAPIView], [RetrieveModelMixin], [UpdateModelMixin], [Destr
|
||||||
|
|
||||||
Each of the generic views provided is built by combining one of the base views below, with one or more mixin classes.
|
Each of the generic views provided is built by combining one of the base views below, with one or more mixin classes.
|
||||||
|
|
||||||
## BaseAPIView
|
## GenericAPIView
|
||||||
|
|
||||||
Extends REST framework's `APIView` class, adding support for serialization of model instances and model querysets.
|
Extends REST framework's `APIView` class, adding support for serialization of model instances and model querysets.
|
||||||
|
|
||||||
## MultipleObjectBaseAPIView
|
## MultipleObjectAPIView
|
||||||
|
|
||||||
Provides a base view for acting on a single object, by combining REST framework's `APIView`, and Django's [MultipleObjectMixin].
|
Provides a base view for acting on a single object, by combining REST framework's `APIView`, and Django's [MultipleObjectMixin].
|
||||||
|
|
||||||
**See also:** ccbv.co.uk documentation for [MultipleObjectMixin][multiple-object-mixin-classy].
|
**See also:** ccbv.co.uk documentation for [MultipleObjectMixin][multiple-object-mixin-classy].
|
||||||
|
|
||||||
## SingleObjectBaseAPIView
|
## SingleObjectAPIView
|
||||||
|
|
||||||
Provides a base view for acting on a single object, by combining REST framework's `APIView`, and Django's [SingleObjectMixin].
|
Provides a base view for acting on a single object, by combining REST framework's `APIView`, and Django's [SingleObjectMixin].
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ Should be mixed in with [MultipleObjectAPIView].
|
||||||
|
|
||||||
Provides a `.create(request, *args, **kwargs)` method, that implements creating and saving a new model instance.
|
Provides a `.create(request, *args, **kwargs)` method, that implements creating and saving a new model instance.
|
||||||
|
|
||||||
Should be mixed in with any [BaseAPIView].
|
Should be mixed in with any [GenericAPIView].
|
||||||
|
|
||||||
## RetrieveModelMixin
|
## RetrieveModelMixin
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user