mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Merge branch 'master' of github.com:tomchristie/django-rest-framework
This commit is contained in:
commit
1c23b0392e
|
@ -126,7 +126,6 @@ class APIView(View):
|
||||||
'Use `.all()` or call `.get_queryset()` instead.'
|
'Use `.all()` or call `.get_queryset()` instead.'
|
||||||
)
|
)
|
||||||
cls.queryset._fetch_all = force_evaluation
|
cls.queryset._fetch_all = force_evaluation
|
||||||
cls.queryset._result_iter = force_evaluation # Django <= 1.5
|
|
||||||
|
|
||||||
view = super(APIView, cls).as_view(**initkwargs)
|
view = super(APIView, cls).as_view(**initkwargs)
|
||||||
view.cls = cls
|
view.cls = cls
|
||||||
|
|
|
@ -79,10 +79,6 @@ class ViewSetMixin(object):
|
||||||
handler = getattr(self, action)
|
handler = getattr(self, action)
|
||||||
setattr(self, method, handler)
|
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
|
# And continue as usual
|
||||||
return self.dispatch(request, *args, **kwargs)
|
return self.dispatch(request, *args, **kwargs)
|
||||||
|
|
||||||
|
|
4
tox.ini
4
tox.ini
|
@ -15,8 +15,8 @@ setenv =
|
||||||
PYTHONDONTWRITEBYTECODE=1
|
PYTHONDONTWRITEBYTECODE=1
|
||||||
PYTHONWARNINGS=once
|
PYTHONWARNINGS=once
|
||||||
deps =
|
deps =
|
||||||
django18: Django==1.8.14
|
django18: Django==1.8.15
|
||||||
django19: Django==1.9.9
|
django19: Django==1.9.10
|
||||||
django110: Django==1.10
|
django110: Django==1.10
|
||||||
djangomaster: https://github.com/django/django/archive/master.tar.gz
|
djangomaster: https://github.com/django/django/archive/master.tar.gz
|
||||||
-rrequirements/requirements-testing.txt
|
-rrequirements/requirements-testing.txt
|
||||||
|
|
Loading…
Reference in New Issue
Block a user