From 8cd169e5029a19da3d1bd1521ab246500427cd91 Mon Sep 17 00:00:00 2001 From: Scot Hacker Date: Sun, 7 Apr 2019 16:11:28 -0700 Subject: [PATCH] MIsc tweaks --- todo/features.py | 4 ++++ todo/templates/todo/import_csv.html | 1 - todo/utils.py | 4 ++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/todo/features.py b/todo/features.py index b55a9ea..8cd084e 100644 --- a/todo/features.py +++ b/todo/features.py @@ -1,3 +1,7 @@ +# 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 diff --git a/todo/templates/todo/import_csv.html b/todo/templates/todo/import_csv.html index 121925b..9d5cb85 100644 --- a/todo/templates/todo/import_csv.html +++ b/todo/templates/todo/import_csv.html @@ -66,7 +66,6 @@ {% endif %} -
Upload Tasks diff --git a/todo/utils.py b/todo/utils.py index d87b609..0016a53 100644 --- a/todo/utils.py +++ b/todo/utils.py @@ -14,8 +14,8 @@ log = logging.getLogger(__name__) def staff_check(user): """If TODO_STAFF_ONLY is set to True, limit view access to staff users only. - # FIXME: More granular access control is needed... but need to do it generically, - # to satisfy all possible todo implementations. + # FIXME: More granular access control needed - see + https://github.com/shacker/django-todo/issues/50 """ if hasattr(settings, "TODO_STAFF_ONLY") and settings.TODO_STAFF_ONLY: