Restore django filter check

This commit is contained in:
Patrick Arminio 2017-06-26 15:31:34 +01:00
parent 1a04d608ed
commit 7888fa76fb

View File

@ -11,8 +11,11 @@ class LazyList(object):
pass
import django_filters # noqa
DJANGO_FILTER_INSTALLED = True
try:
import django_filters # noqa
DJANGO_FILTER_INSTALLED = True
except ImportError:
DJANGO_FILTER_INSTALLED = False
def get_reverse_fields(model, local_field_names):