Skip to content

Commit 9535c7a

Browse files
authored
Merge pull request #33 from manjitkumar/fix-meta-class-usage-for-python2/3
FIX: usage of metaclass using six to keep compatible with python 2 and 3
2 parents f9ed1c0 + a9f4684 commit 9535c7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

filters/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
from .schema import base_query_params_schema
77

88

9+
@six.add_metaclass(MetaFiltersMixin)
910
class FiltersMixin(object):
1011
'''
1112
This viewset provides dynamically generated
1213
filters by applying defined filters on generic
1314
queryset.
1415
'''
15-
__metaclass__ = MetaFiltersMixin
1616

1717
def __get_queryset_filters(self, query_params, *args, **kwargs):
1818
'''

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.5.0'
22+
__version__ = '0.5.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)