Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
1c23b039
Commit
1c23b039
authored
Sep 29, 2016
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:tomchristie/django-rest-framework
parents
e7fd1660
12576275
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
7 deletions
+2
-7
rest_framework/views.py
+0
-1
rest_framework/viewsets.py
+0
-4
tox.ini
+2
-2
No files found.
rest_framework/views.py
View file @
1c23b039
...
@@ -126,7 +126,6 @@ class APIView(View):
...
@@ -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
...
...
rest_framework/viewsets.py
View file @
1c23b039
...
@@ -79,10 +79,6 @@ class ViewSetMixin(object):
...
@@ -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
)
...
...
tox.ini
View file @
1c23b039
...
@@ -15,8 +15,8 @@ setenv =
...
@@ -15,8 +15,8 @@ setenv =
PYTHONDONTWRITEBYTECODE
=
1
PYTHONDONTWRITEBYTECODE
=
1
PYTHONWARNINGS
=
once
PYTHONWARNINGS
=
once
deps
=
deps
=
django18:
Django
=
=1.8.1
4
django18:
Django
=
=1.8.1
5
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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment