File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 2
2
JSON API and Django Rest Framework
3
3
====================================
4
4
5
- .. image :: https://travis-ci.org/django-json-api/django-rest-framework-json-api.svg?branch=master
5
+ .. image :: https://travis-ci.org/django-json-api/django-rest-framework-json-api.svg?branch=develop
6
6
:target: https://travis-ci.org/django-json-api/django-rest-framework-json-api
7
7
8
8
.. image :: https://readthedocs.org/projects/django-rest-framework-json-api/badge/?version=latest
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
3
__title__ = 'djangorestframework-jsonapi'
4
- __version__ = '2.0.0-alpha.1 '
4
+ __version__ = '2.0.0-alpha.2 '
5
5
__author__ = ''
6
6
__license__ = 'MIT'
7
7
__copyright__ = ''
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ def get_queryset(self):
10
10
"""
11
11
Override :meth:``get_queryset``
12
12
"""
13
- ids = dict (self .request .QUERY_PARAMS ).get ('ids[]' )
13
+ if hasattr (self .request , 'query_params' ):
14
+ ids = dict (self .request .query_params ).get ('ids[]' )
15
+ else :
16
+ ids = dict (self .request .QUERY_PARAMS ).get ('ids[]' )
14
17
if ids :
15
18
self .queryset = self .queryset .filter (id__in = ids )
16
19
return self .queryset
You can’t perform that action at this time.
0 commit comments