Skip to content

Commit

Permalink
Do not force signal processor to be celery_haystack.signals
Browse files Browse the repository at this point in the history
  • Loading branch information
EnTeQuAk committed Mar 23, 2013
1 parent fc30af0 commit 4e8d60b
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions celery_haystack/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ def configure(self):
data[name] = value
return data

if (haystack_version[0] >= 2 and
getattr(settings, 'HAYSTACK_SIGNAL_PROCESSOR', None) !=
'celery_haystack.signals.CelerySignalProcessor'):

signal_processor = getattr(settings, 'HAYSTACK_SIGNAL_PROCESSOR', None)


if haystack_version[0] >= 2 and signal_processor is None:
raise ImproperlyConfigured("When using celery-haystack with Haystack 2.X "
"the HAYSTACK_SIGNAL_PROCESSOR setting must be "
"set to 'celery_haystack.signals."
"CelerySignalProcessor'.")
"set. Use 'celery_haystack.signals."
"CelerySignalProcessor' as default.")

0 comments on commit 4e8d60b

Please sign in to comment.