mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-26 03:23:59 +03:00
Fix Django 1.5/1.4 compat issue
This commit is contained in:
parent
c0e3e670ca
commit
108dfafa44
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user