Add django 1.11 to the import check

This commit is contained in:
Niels Lemmens
2017-04-05 10:44:06 +02:00
committed by GitHub
parent 571676e59c
commit 81b3e9c6ec
+1 -1
View File
@@ -12,7 +12,7 @@ default_app_config = 'django_q.apps.DjangoQConfig'
# 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