diff --git a/rest_framework/views.py b/rest_framework/views.py index 15d8c6cde..e178a209f 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -126,7 +126,6 @@ class APIView(View): 'Use `.all()` or call `.get_queryset()` instead.' ) cls.queryset._fetch_all = force_evaluation - cls.queryset._result_iter = force_evaluation # Django <= 1.5 view = super(APIView, cls).as_view(**initkwargs) view.cls = cls diff --git a/rest_framework/viewsets.py b/rest_framework/viewsets.py index bd8333504..a9dc632ff 100644 --- a/rest_framework/viewsets.py +++ b/rest_framework/viewsets.py @@ -79,10 +79,6 @@ class ViewSetMixin(object): handler = getattr(self, action) setattr(self, method, handler) - # Patch this in as it's otherwise only present from 1.5 onwards - if hasattr(self, 'get') and not hasattr(self, 'head'): - self.head = self.get - # And continue as usual return self.dispatch(request, *args, **kwargs)