File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ before_install:
22
22
install :
23
23
- |
24
24
if [ "$TEST_TYPE" = build ]; then
25
- pip install pytest==3.0.2 pytest-cov pytest-benchmark coveralls six pytest-django==2.9.1 mock django-filter
26
25
pip install django==$DJANGO_VERSION
26
+ pip install pytest==3.0.2 pytest-cov pytest-benchmark coveralls six pytest-django==2.9.1 mock
27
+ pip install django==$DJANGO_FILTER_VERSION
27
28
pip install -e .
28
29
python setup.py develop
29
30
elif [ "$TEST_TYPE" = lint ]; then
@@ -45,18 +46,18 @@ after_success:
45
46
fi
46
47
env :
47
48
matrix :
48
- - TEST_TYPE=build
49
+ - TEST_TYPE=build DJANGO_VERSION=1.10 DJANGO_FILTER_VERSION=1.0.0
49
50
matrix :
50
51
fast_finish : true
51
52
include :
52
53
- python : ' 2.7'
53
- env : TEST_TYPE=build DJANGO_VERSION=1.6
54
+ env : TEST_TYPE=build DJANGO_VERSION=1.6 DJANGO_FILTER_VERSION=0.15.3
54
55
- python : ' 2.7'
55
- env : TEST_TYPE=build DJANGO_VERSION=1.7
56
+ env : TEST_TYPE=build DJANGO_VERSION=1.7 DJANGO_FILTER_VERSION=0.15.3
56
57
- python : ' 2.7'
57
- env : TEST_TYPE=build DJANGO_VERSION=1.8
58
+ env : TEST_TYPE=build DJANGO_VERSION=1.8 DJANGO_FILTER_VERSION=0.15.3
58
59
- python : ' 2.7'
59
- env : TEST_TYPE=build DJANGO_VERSION=1.9
60
+ env : TEST_TYPE=build DJANGO_VERSION=1.9 DJANGO_FILTER_VERSION=1.0.0
60
61
- python : ' 2.7'
61
62
env : TEST_TYPE=lint
62
63
deploy :
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def get_filtering_args_from_filterset(filterset_class, type):
19
19
args [name ] = field_type
20
20
21
21
# Also add the 'order_by' field
22
- if filterset_class ._meta . order_by :
22
+ if getattr ( filterset_class ._meta , ' order_by' , None ) :
23
23
args [filterset_class .order_by_field ] = String ()
24
24
25
25
return args
You can’t perform that action at this time.
0 commit comments