File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 22JSON 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
Original file line number Diff line number Diff line change 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__ = ''
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments