Skip to content

Commit 65ec84d

Browse files
Chitharanjan Dasmanjitkumar
authored andcommitted
Bugfixes (#20)
* Bugfixes * Bumps minor version number
1 parent bb698ab commit 65ec84d

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

filters/mixins.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
from voluptuous import Invalid
22
from rest_framework.exceptions import ParseError
33

4+
from .schema import base_query_params_schema
5+
46

57
class FiltersMixin(object):
68
'''
@@ -51,7 +53,7 @@ def __get_queryset_filters(self, query_params, *args, **kwargs):
5153

5254
return dict(filters), dict(excludes)
5355

54-
def __merge_query_params(url_params, query_params):
56+
def __merge_query_params(self, url_params, query_params):
5557
'''
5658
merges the url_params dict with query_params query dict and returns
5759
the merged dict.

filters/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# make a base query param schema, which can be extended for api
88
# specific requirements.
9-
base_query_param_schema = Schema(
9+
base_query_params_schema = Schema(
1010
{
1111
'q': unicode,
1212
'name': unicode,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
2020

2121
__name__ = 'drf-url-filters'
22-
__version__ = '0.2.0'
22+
__version__ = '0.2.1'
2323
__author__ = 'Manjit Kumar'
2424
__author_email__ = 'manjit1727@gmail.com'
2525
__url__ = 'https://github.com/manjitkumar/drf-url-filters'

0 commit comments

Comments
 (0)