Try importing `rest_framework` module (#568)

* Try importing `rest_framework` module

Fixes #567

* Correct Typo

Thanks @kevin-brown!
This commit is contained in:
Carlton Gibson 2016-11-25 08:45:40 +01:00 committed by GitHub
parent f8a44d9e31
commit d5516f9828
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,13 @@ from .constants import STRICTNESS
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'