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
2f2bde69
Commit
2f2bde69
authored
Nov 16, 2012
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs, tox and travis use django-filter 0.5.4
parent
c5765641
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
.travis.yml
+1
-2
docs/api-guide/filtering.md
+2
-3
docs/index.md
+2
-2
tox.ini
+6
-6
No files found.
.travis.yml
View file @
2f2bde69
...
@@ -11,8 +11,7 @@ env:
...
@@ -11,8 +11,7 @@ env:
install
:
install
:
-
pip install $DJANGO
-
pip install $DJANGO
-
pip install -r requirements.txt --use-mirrors
-
pip install django-filter==0.5.4 --use-mirrors
-
pip install -e git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0#egg=django-filter
-
export PYTHONPATH=.
-
export PYTHONPATH=.
script
:
script
:
...
...
docs/api-guide/filtering.md
View file @
2f2bde69
...
@@ -84,9 +84,9 @@ As well as being able to override the default queryset, REST framework also incl
...
@@ -84,9 +84,9 @@ As well as being able to override the default queryset, REST framework also incl
REST framework supports pluggable backends to implement filtering, and provides an implementation which uses the
[
django-filter
]
package.
REST framework supports pluggable backends to implement filtering, and provides an implementation which uses the
[
django-filter
]
package.
To use REST framework's
default
filtering backend, first install
`django-filter`
.
To use REST framework's filtering backend, first install
`django-filter`
.
pip install
-e git+https://github.com/alex/django-filter.git#egg=
django-filter
pip install django-filter
You must also set the filter backend to
`DjangoFilterBackend`
in your settings:
You must also set the filter backend to
`DjangoFilterBackend`
in your settings:
...
@@ -94,7 +94,6 @@ You must also set the filter backend to `DjangoFilterBackend` in your settings:
...
@@ -94,7 +94,6 @@ You must also set the filter backend to `DjangoFilterBackend` in your settings:
'FILTER_BACKEND': 'rest_framework.filters.DjangoFilterBackend'
'FILTER_BACKEND': 'rest_framework.filters.DjangoFilterBackend'
}
}
**Note**
: The currently supported version of
`django-filter`
is the
`master`
branch. A PyPI release is expected to be coming soon.
## Specifying filter fields
## Specifying filter fields
...
...
docs/index.md
View file @
2f2bde69
...
@@ -34,7 +34,7 @@ The following packages are optional:
...
@@ -34,7 +34,7 @@ The following packages are optional:
*
[
Markdown
][
markdown
]
(2.1.0+) - Markdown support for the browseable API.
*
[
Markdown
][
markdown
]
(2.1.0+) - Markdown support for the browseable API.
*
[
PyYAML
][
yaml
]
(3.10+) - YAML content-type support.
*
[
PyYAML
][
yaml
]
(3.10+) - YAML content-type support.
*
[
django-filter
][
django-filter
]
(
master
) - Filtering support.
*
[
django-filter
][
django-filter
]
(
0.5.4+
) - Filtering support.
## Installation
## Installation
...
@@ -43,7 +43,7 @@ Install using `pip`, including any optional packages you want...
...
@@ -43,7 +43,7 @@ Install using `pip`, including any optional packages you want...
pip install djangorestframework
pip install djangorestframework
pip install markdown # Markdown support for the browseable API.
pip install markdown # Markdown support for the browseable API.
pip install pyyaml # YAML content-type support.
pip install pyyaml # YAML content-type support.
pip install
-e git+https://github.com/alex/django-filter.git#egg=
django-filter # Filtering support
pip install django-filter # Filtering support
...or clone the project from github.
...or clone the project from github.
...
...
tox.ini
View file @
2f2bde69
...
@@ -8,29 +8,29 @@ commands = {envpython} rest_framework/runtests/runtests.py
...
@@ -8,29 +8,29 @@ commands = {envpython} rest_framework/runtests/runtests.py
[testenv:py2.7-django1.5]
[testenv:py2.7-django1.5]
basepython
=
python2.7
basepython
=
python2.7
deps
=
https://github.com/django/django/zipball/master
deps
=
https://github.com/django/django/zipball/master
git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0
#egg=django-filter
django-filter
=
=0.5.4
[testenv:py2.7-django1.4]
[testenv:py2.7-django1.4]
basepython
=
python2.7
basepython
=
python2.7
deps
=
django==1.4.1
deps
=
django==1.4.1
git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0
#egg=django-filter
django-filter
=
=0.5.4
[testenv:py2.7-django1.3]
[testenv:py2.7-django1.3]
basepython
=
python2.7
basepython
=
python2.7
deps
=
django==1.3.3
deps
=
django==1.3.3
git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0
#egg=django-filter
django-filter
=
=0.5.4
[testenv:py2.6-django1.5]
[testenv:py2.6-django1.5]
basepython
=
python2.6
basepython
=
python2.6
deps
=
https://github.com/django/django/zipball/master
deps
=
https://github.com/django/django/zipball/master
git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0
#egg=django-filter
django-filter
=
=0.5.4
[testenv:py2.6-django1.4]
[testenv:py2.6-django1.4]
basepython
=
python2.6
basepython
=
python2.6
deps
=
django==1.4.1
deps
=
django==1.4.1
git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0
#egg=django-filter
django-filter
=
=0.5.4
[testenv:py2.6-django1.3]
[testenv:py2.6-django1.3]
basepython
=
python2.6
basepython
=
python2.6
deps
=
django==1.3.3
deps
=
django==1.3.3
git+https://github.com/alex/django-filter.git@0e4b3d703b31574922ab86fc78a86164aad0c1d0
#egg=django-filter
django-filter
=
=0.5.4
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