aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/viewsets.py
diff options
context:
space:
mode:
authorTom Christie2013-05-09 13:35:01 +0100
committerTom Christie2013-05-09 13:35:01 +0100
commit939cc5adba6f5a95aac317134eb841838a0bff3f (patch)
tree29583c9ac1d4b42736cf81afae5b89e84f75be6d /rest_framework/viewsets.py
parent31f94ab409f1d5f41982a5946b980cf3ad8e3ba9 (diff)
downloaddjango-rest-framework-939cc5adba6f5a95aac317134eb841838a0bff3f.tar.bz2
Tweak inheritance
Diffstat (limited to 'rest_framework/viewsets.py')
-rw-r--r--rest_framework/viewsets.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py
index 7c820091..d91323f2 100644
--- a/rest_framework/viewsets.py
+++ b/rest_framework/viewsets.py
@@ -119,8 +119,7 @@ class GenericViewSet(ViewSetMixin, generics.GenericAPIView):
class ReadOnlyModelViewSet(mixins.RetrieveModelMixin,
mixins.ListModelMixin,
- ViewSetMixin,
- generics.GenericAPIView):
+ GenericViewSet):
"""
A viewset that provides default `list()` and `retrieve()` actions.
"""
@@ -132,8 +131,7 @@ class ModelViewSet(mixins.CreateModelMixin,
mixins.UpdateModelMixin,
mixins.DestroyModelMixin,
mixins.ListModelMixin,
- ViewSetMixin,
- generics.GenericAPIView):
+ GenericViewSet):
"""
A viewset that provides default `create()`, `retrieve()`, `update()`,
`partial_update()`, `destroy()` and `list()` actions.