Skip to content

Commit 02ee387

Browse files
committed
Merge remote-tracking branch 'origin/master' into release/3.0.3
2 parents b7015ea + 4d9e7a5 commit 02ee387

File tree

8 files changed

+16
-9
lines changed

8 files changed

+16
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ There is a live example API for testing purposes, [available here][sandbox].
3434
# Requirements
3535

3636
* Python (2.6.5+, 2.7, 3.2, 3.3, 3.4)
37-
* Django (1.4.11+, 1.5.5+, 1.6, 1.7)
37+
* Django (1.4.11+, 1.5.6+, 1.6.3+, 1.7)
3838

3939
# Installation
4040

docs/api-guide/filtering.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ Typically you'd instead control this by setting `order_by` on the initial querys
316316
queryset = User.objects.all()
317317
serializer_class = UserSerializer
318318
filter_backends = (filters.OrderingFilter,)
319+
ordering_fields = ('username', 'email')
319320
ordering = ('username',)
320321

321322
The `ordering` attribute may be either a string or a list/tuple of strings.

docs/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Some reasons you might want to use REST framework:
5151
REST framework requires the following:
5252

5353
* Python (2.6.5+, 2.7, 3.2, 3.3, 3.4)
54-
* Django (1.4.11+, 1.5.5+, 1.6, 1.7)
54+
* Django (1.4.11+, 1.5.6+, 1.6.3+, 1.7)
5555

5656
The following packages are optional:
5757

docs/topics/project-management.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ The following template should be used for the description of the issue, and serv
5858
#### New members.
5959

6060
If you wish to be considered for this or a future date, please comment against this or subsequent issues.
61+
62+
To modify this process for future maintenance cycles make a pull request to the [project management](http://www.django-rest-framework.org/topics/project-management/) documentation.
6163

6264
#### Responsibilities of team members
6365

@@ -107,6 +109,8 @@ The following template should be used for the description of the issue, and serv
107109
- [ ] Make a release announcement on the [discussion group](https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework).
108110
- [ ] Make a release announcement on twitter.
109111
- [ ] Close the milestone on GitHub.
112+
113+
To modify this process for future releases make a pull request to the [project management](http://www.django-rest-framework.org/topics/project-management/) documentation.
110114

111115
When pushing the release to PyPI ensure that your environment has been installed from our development `requirement.txt`, so that documentation and PyPI installs are consistently being built against a pinned set of packages.
112116

@@ -126,6 +130,7 @@ The following issues still need to be addressed:
126130
* Ensure `@jamie` has back-up access to the `django-rest-framework.org` domain setup and admin.
127131
* Document ownership of the [live example][sandbox] API.
128132
* Document ownership of the [mailing list][mailing-list] and IRC channel.
133+
* Document ownership and management of the security mailing list.
129134

130135
[bus-factor]: http://en.wikipedia.org/wiki/Bus_factor
131136
[un-triaged]: https://github.com/tomchristie/django-rest-framework/issues?q=is%3Aopen+no%3Alabel

rest_framework/compat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
from django.core.exceptions import ImproperlyConfigured
1212
from django.utils.encoding import force_text
13-
from django.utils.six.moves.urllib import parse as urlparse
13+
from django.utils.six.moves.urllib.parse import urlparse as _urlparse
1414
from django.conf import settings
1515
from django.utils import six
1616
import django
@@ -182,7 +182,7 @@ def __init__(self, *args, **kwargs):
182182
class RequestFactory(DjangoRequestFactory):
183183
def generic(self, method, path,
184184
data='', content_type='application/octet-stream', **extra):
185-
parsed = urlparse.urlparse(path)
185+
parsed = _urlparse(path)
186186
data = force_bytes_or_smart_bytes(data, settings.DEFAULT_CHARSET)
187187
r = {
188188
'PATH_INFO': self._get_path(parsed),

rest_framework/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ class APISettings(object):
167167
For example:
168168
169169
from rest_framework.settings import api_settings
170-
print api_settings.DEFAULT_RENDERER_CLASSES
170+
print(api_settings.DEFAULT_RENDERER_CLASSES)
171171
172172
Any setting with string import paths will be automatically resolved
173173
and return the class, rather than the string literal.

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def get_package_data(package):
6767
packages=get_packages('rest_framework'),
6868
package_data=get_package_data('rest_framework'),
6969
install_requires=[],
70+
zip_safe=False,
7071
classifiers=[
7172
'Development Status :: 5 - Production/Stable',
7273
'Environment :: Web Environment',

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ commands = ./runtests.py --fast
1010
setenv =
1111
PYTHONDONTWRITEBYTECODE=1
1212
deps =
13-
django14: Django==1.4.11
14-
django15: Django==1.5.5
15-
django16: Django==1.6.8
16-
django17: Django==1.7.1
13+
django14: Django==1.4.11 # Should track minimum supported
14+
django15: Django==1.5.6 # Should track minimum supported
15+
django16: Django==1.6.3 # Should track minimum supported
16+
django17: Django==1.7.2 # Should track maximum supported
1717
djangomaster: https://github.com/django/django/zipball/master
1818
{py26,py27}-django{14,15,16,17}: django-guardian==1.2.3
1919
{py26,py27}-django{14,15,16}: oauth2==1.5.211

0 commit comments

Comments
 (0)