diff options
| author | Tom Christie | 2014-08-29 12:48:49 +0100 |
|---|---|---|
| committer | Tom Christie | 2014-08-29 12:48:49 +0100 |
| commit | ce7b2cded94abc12ae1be076642de96684d0927b (patch) | |
| tree | ca0a68b6187985d86a9ff57f18a2334d34652b54 /rest_framework/generics.py | |
| parent | 72c0811576feb89decf6fc6dc4ee5e25eca0aece (diff) | |
| download | django-rest-framework-ce7b2cded94abc12ae1be076642de96684d0927b.tar.bz2 | |
Remove deprecated generic views.
`MultipleObjectAPIView` and `SingleObjectAPIView` are no longer
required.
Diffstat (limited to 'rest_framework/generics.py')
| -rw-r--r-- | rest_framework/generics.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/rest_framework/generics.py b/rest_framework/generics.py index d0adeaec..e6cbfca9 100644 --- a/rest_framework/generics.py +++ b/rest_framework/generics.py @@ -442,25 +442,3 @@ class RetrieveUpdateDestroyAPIView(mixins.RetrieveModelMixin, def delete(self, request, *args, **kwargs): return self.destroy(request, *args, **kwargs) - - -# Deprecated classes - -class MultipleObjectAPIView(GenericAPIView): - def __init__(self, *args, **kwargs): - warnings.warn( - 'Subclassing `MultipleObjectAPIView` is deprecated. ' - 'You should simply subclass `GenericAPIView` instead.', - DeprecationWarning, stacklevel=2 - ) - super(MultipleObjectAPIView, self).__init__(*args, **kwargs) - - -class SingleObjectAPIView(GenericAPIView): - def __init__(self, *args, **kwargs): - warnings.warn( - 'Subclassing `SingleObjectAPIView` is deprecated. ' - 'You should simply subclass `GenericAPIView` instead.', - DeprecationWarning, stacklevel=2 - ) - super(SingleObjectAPIView, self).__init__(*args, **kwargs) |
