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
13867670
Commit
13867670
authored
Jun 12, 2014
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Version 2.3.14
parent
3dcc6585
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
23 deletions
+25
-23
docs/api-guide/content-negotiation.md
+0
-2
docs/topics/release-notes.md
+22
-18
rest_framework/__init__.py
+1
-1
rest_framework/templatetags/rest_framework.py
+2
-2
No files found.
docs/api-guide/content-negotiation.md
View file @
13867670
<a
class=
"github"
href=
"negotiation.py"
></a>
# Content negotiation
> HTTP has provisions for several mechanisms for "content negotiation" - the process of selecting the best representation for a given response when there are multiple representations available.
...
...
docs/topics/release-notes.md
View file @
13867670
...
...
@@ -40,24 +40,28 @@ You can determine your currently installed version using `pip freeze`:
## 2.3.x series
### 2.3.x
*
*Date
**
:
April 2014
*
Fix nested serializers linked through a backward foreign key relation
*
Fix bad links for the `BrowsableAPIRenderer` with `YAMLRenderer`
*
Add `UnicodeYAMLRenderer` that extends `YAMLRenderer` with unicode
*
Fix `parse_header` argument convertion
*
Fix mediatype detection under Python3
*
Web browseable API now offers blank option on dropdown when the field is not required
*
`
APIException` representation improved for logging purposes
*
Allow source="*" within nested serializers
*
Better support for custom oauth2 provider backends
*
Fix field validation if it's optional and has no value
*
Add `SEARCH_PARAM` and `ORDERING_PARAM`
*
Fix `APIRequestFactory` to support arguments within the url string for GET
*
Allow three transport modes for access tokens when accessing a protected resource
*
Fix `Request`'s `QueryDict` encoding
### 2.3.14
*
*Date
**
:
12th June 2014
*
*
*Security
fix**
:
Escape request path when it is include as part of the login and logout links in the browsable API.
*
`
help_text` and `verbose_name` automatically set for related fields on `ModelSerializer`.
*
Fix nested serializers linked through a backward foreign key relation.
*
Fix bad links for the `BrowsableAPIRenderer` with `YAMLRenderer`.
*
Add `UnicodeYAMLRenderer` that extends `YAMLRenderer` with unicode.
*
Fix `parse_header` argument convertion.
*
Fix mediatype detection under Python 3.
*
Web browseable API now offers blank option on dropdown when the field is not required.
*
`
APIException` representation improved for logging purposes.
*
Allow source="*" within nested serializers.
*
Better support for custom oauth2 provider backends.
*
Fix field validation if it's optional and has no value.
*
Add `SEARCH_PARAM` and `ORDERING_PARAM`.
*
Fix `APIRequestFactory` to support arguments within the url string for GET.
*
Allow three transport modes for access tokens when accessing a protected resource.
*
Fix `QueryDict` encoding on request objects.
*
Ensure throttle keys do not contain spaces, as those are invalid if using `memcached`.
*
Support `blank_display_value` on `ChoiceField`.
### 2.3.13
...
...
rest_framework/__init__.py
View file @
13867670
...
...
@@ -8,7 +8,7 @@ ______ _____ _____ _____ __ _
"""
__title__
=
'Django REST framework'
__version__
=
'2.3.1
3
'
__version__
=
'2.3.1
4
'
__author__
=
'Tom Christie'
__license__
=
'BSD 2-Clause'
__copyright__
=
'Copyright 2011-2014 Tom Christie'
...
...
rest_framework/templatetags/rest_framework.py
View file @
13867670
...
...
@@ -122,7 +122,7 @@ def optional_login(request):
except
NoReverseMatch
:
return
''
snippet
=
"<a href='
%
s?next=
%
s'>Log in</a>"
%
(
login_url
,
request
.
path
)
snippet
=
"<a href='
%
s?next=
%
s'>Log in</a>"
%
(
login_url
,
escape
(
request
.
path
)
)
return
snippet
...
...
@@ -136,7 +136,7 @@ def optional_logout(request):
except
NoReverseMatch
:
return
''
snippet
=
"<a href='
%
s?next=
%
s'>Log out</a>"
%
(
logout_url
,
request
.
path
)
snippet
=
"<a href='
%
s?next=
%
s'>Log out</a>"
%
(
logout_url
,
escape
(
request
.
path
)
)
return
snippet
...
...
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