Skip to content

Commit

Permalink
Bump version to 2.4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
shacker committed Apr 12, 2019
1 parent 1cd9700 commit 4a385bd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion todo/__init__.py
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
10 changes: 4 additions & 6 deletions todo/defaults.py
Original file line number Diff line number Diff line change
@@ -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):
Expand All @@ -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)

0 comments on commit 4a385bd

Please sign in to comment.