From 7888fa76fbf2d3418e5a75a44b364b33860f0318 Mon Sep 17 00:00:00 2001 From: Patrick Arminio Date: Mon, 26 Jun 2017 15:31:34 +0100 Subject: [PATCH] Restore django filter check --- graphene_django/utils.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/graphene_django/utils.py b/graphene_django/utils.py index 468dc4c..6fc5599 100644 --- a/graphene_django/utils.py +++ b/graphene_django/utils.py @@ -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):