We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2a2e6 commit 15a5c72Copy full SHA for 15a5c72
django_filters/__init__.py
@@ -1,14 +1,14 @@
1
# flake8: noqa
2
-import pkgutil
+from importlib import util as importlib_util
3
4
from .filters import *
5
from .filterset import FilterSet
6
7
# We make the `rest_framework` module available without an additional import.
8
# If DRF is not installed, no-op.
9
-if pkgutil.find_loader("rest_framework") is not None:
+if importlib_util.find_spec("rest_framework"):
10
from . import rest_framework
11
-del pkgutil
+del importlib_util
12
13
__version__ = "23.3"
14
0 commit comments