add option to restrict todo to staff

This commit is contained in:
Tom Shortall 2012-03-13 00:12:09 +00:00
parent 1e40919aee
commit 6284dad786
2 changed files with 26 additions and 15 deletions

4
todo/settings.py Normal file
View file

@ -0,0 +1,4 @@
from django.core.exceptions import ImproperlyConfigured
from django.conf import settings
STAFF_ONLY = getattr(settings, 'TODO_STAFF_ONLY', False)