Skip to content

Commit

Permalink
Try importing rest_framework module (carltongibson#568)
Browse files Browse the repository at this point in the history
* Try importing `rest_framework` module

Fixes carltongibson#567

* Correct Typo

Thanks @kevin-brown!
  • Loading branch information
Carlton Gibson authored Nov 25, 2016
1 parent f8a44d9 commit d5516f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions django_filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
from .filterset import FilterSet
from .filters import *

# We make the `rest_framework` module available without an additional import.
# If DRF is not installed we simply set None.
try:
from . import rest_framework
except ImportError:
rest_framework = None

__version__ = '1.0.0'


Expand Down

0 comments on commit d5516f9

Please sign in to comment.