coins-demo/todo/features.py
2019-04-12 00:09:01 -07:00

16 lines
491 B
Python

# The integrated mail queue functionality can enable advanced functionality if
# django-autocomplete-light is installed and configured. We can use this module
# to check for other installed dependencies in the future.
HAS_AUTOCOMPLETE = True
try:
import dal
except ImportError:
HAS_AUTOCOMPLETE = False
HAS_TASK_MERGE = False
if HAS_AUTOCOMPLETE:
import dal.autocomplete
if getattr(dal.autocomplete, "Select2QuerySetView", None) is not None:
HAS_TASK_MERGE = True