Skip to content

Commit f4b38e4

Browse files
committed
Merge branch 'develop' of github.com:django-json-api/django-rest-framework-json-api into feature/JsonAPISpec
2 parents 9e427d9 + 4075cbe commit f4b38e4

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
JSON API and Django Rest Framework
33
====================================
44

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
66
:target: https://travis-ci.org/django-json-api/django-rest-framework-json-api
77

88
.. image:: https://readthedocs.org/projects/django-rest-framework-json-api/badge/?version=latest

rest_framework_json_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8 -*-
22

33
__title__ = 'djangorestframework-jsonapi'
4-
__version__ = '2.0.0-alpha.1'
4+
__version__ = '2.0.0-alpha.2'
55
__author__ = ''
66
__license__ = 'MIT'
77
__copyright__ = ''

rest_framework_json_api/mixins.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ def get_queryset(self):
1010
"""
1111
Override :meth:``get_queryset``
1212
"""
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[]')
1417
if ids:
1518
self.queryset = self.queryset.filter(id__in=ids)
1619
return self.queryset

0 commit comments

Comments
 (0)