diff --git a/HISTORY.rst b/HISTORY.rst index cff4ca7..bd93ca1 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -3,6 +3,15 @@ History ------- +0.3.4 (2017-08-17) +~~~~~~~~~~~~~~~~~~ + +* Py36 compatibility by switching to ``enum-compat`` from ``enum34`` +* Improvement to ``README`` by including imports in code examples +* Defaulting ``SQLAlchemyModelFilterSet`` to use ``SQLAlchemyFilterBackend`` +* Defaulting ``PlainModelFilterSet`` to use ``PlainFilterBackend`` +* Using universal wheels for distribution + 0.3.3 (2017-06-15) ~~~~~~~~~~~~~~~~~~ diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..3c6e79c --- /dev/null +++ b/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/url_filter/__init__.py b/url_filter/__init__.py index 7762f3f..5bab113 100644 --- a/url_filter/__init__.py +++ b/url_filter/__init__.py @@ -4,4 +4,4 @@ __author__ = 'Miroslav Shubernetskiy' __email__ = 'miroslav@miki725.com' -__version__ = '0.3.3' +__version__ = '0.3.4' diff --git a/url_filter/filtersets/plain.py b/url_filter/filtersets/plain.py index c6b74a2..b502f2f 100644 --- a/url_filter/filtersets/plain.py +++ b/url_filter/filtersets/plain.py @@ -6,6 +6,7 @@ import six from django import forms +from ..backends.plain import PlainFilterBackend from ..exceptions import SkipFilter from ..filters import Filter from ..utils import SubClassDict, dictify @@ -31,6 +32,7 @@ class PlainModelFilterSet(BaseModelFilterSet): The filterset can be configured via ``Meta`` class attribute, very much like Django's ``ModelForm`` is configured. """ + filter_backend_class = PlainFilterBackend def _build_state(self): return dictify(self.Meta.model) diff --git a/url_filter/filtersets/sqlalchemy.py b/url_filter/filtersets/sqlalchemy.py index f0e47fa..63eb27b 100644 --- a/url_filter/filtersets/sqlalchemy.py +++ b/url_filter/filtersets/sqlalchemy.py @@ -67,6 +67,7 @@ class SQLAlchemyModelFilterSet(BaseModelFilterSet): The filterset can be configured via ``Meta`` class attribute, very much like Django's ``ModelForm`` is configured. """ + filter_backend_class = SQLAlchemyFilterBackend def _build_filter(self, name, fields): field = fields[name]