From 81b3e9c6ec89123eedaf53931cfa9c9bc6817d3c Mon Sep 17 00:00:00 2001 From: Niels Lemmens Date: Wed, 5 Apr 2017 10:44:06 +0200 Subject: [PATCH] Add django 1.11 to the import check --- django_q/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django_q/__init__.py b/django_q/__init__.py index b8c54350..2f9a07fe 100644 --- a/django_q/__init__.py +++ b/django_q/__init__.py @@ -12,7 +12,7 @@ # root imports will slowly be deprecated. # please import from the relevant sub modules split_version = get_version().split('.') -if split_version[1][0] != '9' and split_version[1][:2] != '10': +if split_version[1] not in ('9', '10', '11'): from .tasks import async, schedule, result, result_group, fetch, fetch_group, count_group, delete_group, queue_size from .models import Task, Schedule, Success, Failure from .cluster import Cluster