diff options
| author | Tom Christie | 2013-05-09 13:31:42 +0100 |
|---|---|---|
| committer | Tom Christie | 2013-05-09 13:31:42 +0100 |
| commit | 31f94ab409f1d5f41982a5946b980cf3ad8e3ba9 (patch) | |
| tree | 3b5f65e21eb0d177578ae760a46fe8eda1f6277f /rest_framework/viewsets.py | |
| parent | f2466418dd325ed1353d4e0056411c16e96c2073 (diff) | |
| download | django-rest-framework-31f94ab409f1d5f41982a5946b980cf3ad8e3ba9.tar.bz2 | |
Added GenericViewSet and docs tweaking
Diffstat (limited to 'rest_framework/viewsets.py')
| -rw-r--r-- | rest_framework/viewsets.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py index 0eb3e86d..7c820091 100644 --- a/rest_framework/viewsets.py +++ b/rest_framework/viewsets.py @@ -108,6 +108,15 @@ class ViewSet(ViewSetMixin, views.APIView): pass +class GenericViewSet(ViewSetMixin, generics.GenericAPIView): + """ + The GenericViewSet class does not provide any actions by default, + but does include the base set of generic view behavior, such as + the `get_object` and `get_queryset` methods. + """ + pass + + class ReadOnlyModelViewSet(mixins.RetrieveModelMixin, mixins.ListModelMixin, ViewSetMixin, |
