Bump version to 2.4.6

This commit is contained in:
Scot Hacker 2019-04-11 23:51:38 -07:00
parent 1cd9700366
commit 4a385bde6b
3 changed files with 7 additions and 7 deletions

View file

@ -300,6 +300,8 @@ django-todo uses pytest exclusively for testing. The best way to run the suite i
## Version History
**2.4.6** Use `defaults` hash for default settings, update perms and tests
**2.4.5** Re-enable "notify" feature during task edit
**2.4.4** Fix issues with setup.py / installation

View file

@ -1,7 +1,7 @@
"""
A multi-user, multi-group task management and assignment system for Django.
"""
__version__ = '2.4.5'
__version__ = '2.4.6'
__author__ = 'Scot Hacker'
__email__ = 'shacker@birdhouse.org'

View file

@ -1,15 +1,14 @@
# If a documented django-todo option is NOT configured in settings, use these values.
from django.conf import settings
hash = {
"TODO_ALLOW_FILE_ATTACHMENTS": True,
"TODO_COMMENT_CLASSES": [],
"TODO_DEFAULT_ASSIGNEE": None,
"TODO_LIMIT_FILE_ATTACHMENTS": [".jpg", ".gif", ".png", ".csv", ".pdf", ".zip"],
"TODO_MAXIMUM_ATTACHMENT_SIZE": 5000000,
"TODO_STAFF_ONLY": True,
"TODO_DEFAULT_ASSIGNEE": None,
"TODO_PUBLIC_SUBMIT_REDIRECT": "/",
"TODO_COMMENT_CLASSES": [],
"TODO_STAFF_ONLY": True,
}
# These intentionally have no defaults (user MUST set a value):
@ -22,5 +21,4 @@ def defaults(key: str):
"""Try to get a setting from project settings.
If empty or doesn't exist, fall back to a value from defaults hash."""
_ret = getattr(settings, key, False) or hash.get(key)
return _ret
return getattr(settings, key, False) or hash.get(key)