mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-23 01:57:00 +03:00
Tweak inheritance
This commit is contained in:
parent
31f94ab409
commit
939cc5adba
|
@ -119,8 +119,7 @@ class GenericViewSet(ViewSetMixin, generics.GenericAPIView):
|
||||||
|
|
||||||
class ReadOnlyModelViewSet(mixins.RetrieveModelMixin,
|
class ReadOnlyModelViewSet(mixins.RetrieveModelMixin,
|
||||||
mixins.ListModelMixin,
|
mixins.ListModelMixin,
|
||||||
ViewSetMixin,
|
GenericViewSet):
|
||||||
generics.GenericAPIView):
|
|
||||||
"""
|
"""
|
||||||
A viewset that provides default `list()` and `retrieve()` actions.
|
A viewset that provides default `list()` and `retrieve()` actions.
|
||||||
"""
|
"""
|
||||||
|
@ -132,8 +131,7 @@ class ModelViewSet(mixins.CreateModelMixin,
|
||||||
mixins.UpdateModelMixin,
|
mixins.UpdateModelMixin,
|
||||||
mixins.DestroyModelMixin,
|
mixins.DestroyModelMixin,
|
||||||
mixins.ListModelMixin,
|
mixins.ListModelMixin,
|
||||||
ViewSetMixin,
|
GenericViewSet):
|
||||||
generics.GenericAPIView):
|
|
||||||
"""
|
"""
|
||||||
A viewset that provides default `create()`, `retrieve()`, `update()`,
|
A viewset that provides default `create()`, `retrieve()`, `update()`,
|
||||||
`partial_update()`, `destroy()` and `list()` actions.
|
`partial_update()`, `destroy()` and `list()` actions.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user