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
bb613c5a
Commit
bb613c5a
authored
Aug 05, 2016
by
Tom Christie
Committed by
GitHub
Aug 05, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 3.4.3 (#4361)
* Version 3.4.3
parent
35320b1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
+18
-1
docs/topics/release-notes.md
+10
-0
rest_framework/__init__.py
+1
-1
rest_framework/renderers.py
+7
-0
No files found.
docs/topics/release-notes.md
View file @
bb613c5a
...
...
@@ -40,6 +40,12 @@ You can determine your currently installed version using `pip freeze`:
## 3.4.x series
### 3.4.3
*
*Date
**
:
[
5th August 2016
][
3.4.3-milestone
]
*
Include fallaback for users of older TemplateHTMLRenderer internal API. ([#4361][gh4361])
### 3.4.2
*
*Date
**
:
[
5th August 2016
][
3.4.2-milestone
]
...
...
@@ -533,6 +539,7 @@ For older release notes, [please see the version 2.x documentation][old-release-
[
3.4.0-milestone
]:
https://github.com/tomchristie/django-rest-framework/issues?q=milestone%3A%223.4.0+Release%22
[
3.4.1-milestone
]:
https://github.com/tomchristie/django-rest-framework/issues?q=milestone%3A%223.4.1+Release%22
[
3.4.2-milestone
]:
https://github.com/tomchristie/django-rest-framework/issues?q=milestone%3A%223.4.2+Release%22
[
3.4.3-milestone
]:
https://github.com/tomchristie/django-rest-framework/issues?q=milestone%3A%223.4.3+Release%22
<!-- 3.0.1 -->
[
gh2013
]:
https://github.com/tomchristie/django-rest-framework/issues/2013
...
...
@@ -990,3 +997,6 @@ For older release notes, [please see the version 2.x documentation][old-release-
[
gh4357
]:
https://github.com/tomchristie/django-rest-framework/issues/4357
[
gh4358
]:
https://github.com/tomchristie/django-rest-framework/issues/4358
[
gh4359
]:
https://github.com/tomchristie/django-rest-framework/issues/4359
<!-- 3.4.3 -->
[
gh4361
]:
https://github.com/tomchristie/django-rest-framework/issues/4361
rest_framework/__init__.py
View file @
bb613c5a
...
...
@@ -8,7 +8,7 @@ ______ _____ _____ _____ __
"""
__title__
=
'Django REST framework'
__version__
=
'3.4.
2
'
__version__
=
'3.4.
3
'
__author__
=
'Tom Christie'
__license__
=
'BSD 2-Clause'
__copyright__
=
'Copyright 2011-2016 Tom Christie'
...
...
rest_framework/renderers.py
View file @
bb613c5a
...
...
@@ -166,6 +166,10 @@ class TemplateHTMLRenderer(BaseRenderer):
template_names
=
self
.
get_template_names
(
response
,
view
)
template
=
self
.
resolve_template
(
template_names
)
if
hasattr
(
self
,
'resolve_context'
):
# Fallback for older versions.
context
=
self
.
resolve_context
(
self
,
data
,
request
,
response
)
else
:
context
=
self
.
get_template_context
(
data
,
renderer_context
)
return
template_render
(
template
,
context
,
request
=
request
)
...
...
@@ -229,7 +233,10 @@ class StaticHTMLRenderer(TemplateHTMLRenderer):
if
response
and
response
.
exception
:
request
=
renderer_context
[
'request'
]
template
=
self
.
get_exception_template
(
response
)
if
hasattr
(
self
,
'resolve_context'
):
context
=
self
.
resolve_context
(
data
,
request
,
response
)
else
:
context
=
self
.
get_template_context
(
data
,
renderer_context
)
return
template_render
(
template
,
context
,
request
=
request
)
return
data
...
...
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