Skip to content

Commit 864e7a0

Browse files
committed
Disable discover runner on Django >= 1.6
1 parent 86b2d1e commit 864e7a0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

celery_haystack/test_settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import os
22

3+
import django
4+
35
from celery import Celery
46

57
app = Celery('celery_haystack')
@@ -32,7 +34,8 @@
3234
CELERYD_LOG_LEVEL = "DEBUG"
3335
CELERY_DEFAULT_QUEUE = "celery-haystack"
3436

35-
TEST_RUNNER = 'discover_runner.DiscoverRunner'
37+
if django.VERSION < (1, 6):
38+
TEST_RUNNER = 'discover_runner.DiscoverRunner'
3639

3740
if os.environ.get('HAYSTACK') == 'v1':
3841
HAYSTACK_SITECONF = 'celery_haystack.tests.search_sites'

0 commit comments

Comments
 (0)