From 108dfafa44284bc2ad14558882acb5a62c370da0 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Fri, 24 Jul 2015 09:02:16 +0100 Subject: [PATCH] Fix Django 1.5/1.4 compat issue --- rest_framework/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/views.py b/rest_framework/views.py index debcb07a2..8141a6550 100644 --- a/rest_framework/views.py +++ b/rest_framework/views.py @@ -126,8 +126,8 @@ class APIView(View): 'as the result will be cached and reused between requests. ' '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