mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-09 08:00:52 +03:00
Merge remote-tracking branch 'origin/master' into release/3.0.3
This commit is contained in:
commit
02ee3871ae
|
@ -34,7 +34,7 @@ There is a live example API for testing purposes, [available here][sandbox].
|
||||||
# Requirements
|
# Requirements
|
||||||
|
|
||||||
* Python (2.6.5+, 2.7, 3.2, 3.3, 3.4)
|
* Python (2.6.5+, 2.7, 3.2, 3.3, 3.4)
|
||||||
* Django (1.4.11+, 1.5.5+, 1.6, 1.7)
|
* Django (1.4.11+, 1.5.6+, 1.6.3+, 1.7)
|
||||||
|
|
||||||
# Installation
|
# Installation
|
||||||
|
|
||||||
|
|
|
@ -316,6 +316,7 @@ Typically you'd instead control this by setting `order_by` on the initial querys
|
||||||
queryset = User.objects.all()
|
queryset = User.objects.all()
|
||||||
serializer_class = UserSerializer
|
serializer_class = UserSerializer
|
||||||
filter_backends = (filters.OrderingFilter,)
|
filter_backends = (filters.OrderingFilter,)
|
||||||
|
ordering_fields = ('username', 'email')
|
||||||
ordering = ('username',)
|
ordering = ('username',)
|
||||||
|
|
||||||
The `ordering` attribute may be either a string or a list/tuple of strings.
|
The `ordering` attribute may be either a string or a list/tuple of strings.
|
||||||
|
|
|
@ -51,7 +51,7 @@ Some reasons you might want to use REST framework:
|
||||||
REST framework requires the following:
|
REST framework requires the following:
|
||||||
|
|
||||||
* Python (2.6.5+, 2.7, 3.2, 3.3, 3.4)
|
* Python (2.6.5+, 2.7, 3.2, 3.3, 3.4)
|
||||||
* Django (1.4.11+, 1.5.5+, 1.6, 1.7)
|
* Django (1.4.11+, 1.5.6+, 1.6.3+, 1.7)
|
||||||
|
|
||||||
The following packages are optional:
|
The following packages are optional:
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,8 @@ The following template should be used for the description of the issue, and serv
|
||||||
#### New members.
|
#### New members.
|
||||||
|
|
||||||
If you wish to be considered for this or a future date, please comment against this or subsequent issues.
|
If you wish to be considered for this or a future date, please comment against this or subsequent issues.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
#### Responsibilities of team members
|
#### Responsibilities of team members
|
||||||
|
|
||||||
|
@ -107,6 +109,8 @@ The following template should be used for the description of the issue, and serv
|
||||||
- [ ] Make a release announcement on the [discussion group](https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework).
|
- [ ] Make a release announcement on the [discussion group](https://groups.google.com/forum/?fromgroups#!forum/django-rest-framework).
|
||||||
- [ ] Make a release announcement on twitter.
|
- [ ] Make a release announcement on twitter.
|
||||||
- [ ] Close the milestone on GitHub.
|
- [ ] Close the milestone on GitHub.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
|
||||||
|
@ -126,6 +130,7 @@ The following issues still need to be addressed:
|
||||||
* Ensure `@jamie` has back-up access to the `django-rest-framework.org` domain setup and admin.
|
* Ensure `@jamie` has back-up access to the `django-rest-framework.org` domain setup and admin.
|
||||||
* Document ownership of the [live example][sandbox] API.
|
* Document ownership of the [live example][sandbox] API.
|
||||||
* Document ownership of the [mailing list][mailing-list] and IRC channel.
|
* Document ownership of the [mailing list][mailing-list] and IRC channel.
|
||||||
|
* Document ownership and management of the security mailing list.
|
||||||
|
|
||||||
[bus-factor]: http://en.wikipedia.org/wiki/Bus_factor
|
[bus-factor]: http://en.wikipedia.org/wiki/Bus_factor
|
||||||
[un-triaged]: https://github.com/tomchristie/django-rest-framework/issues?q=is%3Aopen+no%3Alabel
|
[un-triaged]: https://github.com/tomchristie/django-rest-framework/issues?q=is%3Aopen+no%3Alabel
|
||||||
|
|
|
@ -10,7 +10,7 @@ import inspect
|
||||||
|
|
||||||
from django.core.exceptions import ImproperlyConfigured
|
from django.core.exceptions import ImproperlyConfigured
|
||||||
from django.utils.encoding import force_text
|
from django.utils.encoding import force_text
|
||||||
from django.utils.six.moves.urllib import parse as urlparse
|
from django.utils.six.moves.urllib.parse import urlparse as _urlparse
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.utils import six
|
from django.utils import six
|
||||||
import django
|
import django
|
||||||
|
@ -182,7 +182,7 @@ except ImportError:
|
||||||
class RequestFactory(DjangoRequestFactory):
|
class RequestFactory(DjangoRequestFactory):
|
||||||
def generic(self, method, path,
|
def generic(self, method, path,
|
||||||
data='', content_type='application/octet-stream', **extra):
|
data='', content_type='application/octet-stream', **extra):
|
||||||
parsed = urlparse.urlparse(path)
|
parsed = _urlparse(path)
|
||||||
data = force_bytes_or_smart_bytes(data, settings.DEFAULT_CHARSET)
|
data = force_bytes_or_smart_bytes(data, settings.DEFAULT_CHARSET)
|
||||||
r = {
|
r = {
|
||||||
'PATH_INFO': self._get_path(parsed),
|
'PATH_INFO': self._get_path(parsed),
|
||||||
|
|
|
@ -167,7 +167,7 @@ class APISettings(object):
|
||||||
For example:
|
For example:
|
||||||
|
|
||||||
from rest_framework.settings import api_settings
|
from rest_framework.settings import api_settings
|
||||||
print api_settings.DEFAULT_RENDERER_CLASSES
|
print(api_settings.DEFAULT_RENDERER_CLASSES)
|
||||||
|
|
||||||
Any setting with string import paths will be automatically resolved
|
Any setting with string import paths will be automatically resolved
|
||||||
and return the class, rather than the string literal.
|
and return the class, rather than the string literal.
|
||||||
|
|
1
setup.py
1
setup.py
|
@ -67,6 +67,7 @@ setup(
|
||||||
packages=get_packages('rest_framework'),
|
packages=get_packages('rest_framework'),
|
||||||
package_data=get_package_data('rest_framework'),
|
package_data=get_package_data('rest_framework'),
|
||||||
install_requires=[],
|
install_requires=[],
|
||||||
|
zip_safe=False,
|
||||||
classifiers=[
|
classifiers=[
|
||||||
'Development Status :: 5 - Production/Stable',
|
'Development Status :: 5 - Production/Stable',
|
||||||
'Environment :: Web Environment',
|
'Environment :: Web Environment',
|
||||||
|
|
8
tox.ini
8
tox.ini
|
@ -10,10 +10,10 @@ commands = ./runtests.py --fast
|
||||||
setenv =
|
setenv =
|
||||||
PYTHONDONTWRITEBYTECODE=1
|
PYTHONDONTWRITEBYTECODE=1
|
||||||
deps =
|
deps =
|
||||||
django14: Django==1.4.11
|
django14: Django==1.4.11 # Should track minimum supported
|
||||||
django15: Django==1.5.5
|
django15: Django==1.5.6 # Should track minimum supported
|
||||||
django16: Django==1.6.8
|
django16: Django==1.6.3 # Should track minimum supported
|
||||||
django17: Django==1.7.1
|
django17: Django==1.7.2 # Should track maximum supported
|
||||||
djangomaster: https://github.com/django/django/zipball/master
|
djangomaster: https://github.com/django/django/zipball/master
|
||||||
{py26,py27}-django{14,15,16,17}: django-guardian==1.2.3
|
{py26,py27}-django{14,15,16,17}: django-guardian==1.2.3
|
||||||
{py26,py27}-django{14,15,16}: oauth2==1.5.211
|
{py26,py27}-django{14,15,16}: oauth2==1.5.211
|
||||||
|
|
Loading…
Reference in New Issue
Block a user