Bump version to 2.4.6
This commit is contained in:
parent
1cd9700366
commit
4a385bde6b
3 changed files with 7 additions and 7 deletions
|
@ -300,6 +300,8 @@ django-todo uses pytest exclusively for testing. The best way to run the suite i
|
||||||
|
|
||||||
## Version History
|
## 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.5** Re-enable "notify" feature during task edit
|
||||||
|
|
||||||
**2.4.4** Fix issues with setup.py / installation
|
**2.4.4** Fix issues with setup.py / installation
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
A multi-user, multi-group task management and assignment system for Django.
|
A multi-user, multi-group task management and assignment system for Django.
|
||||||
"""
|
"""
|
||||||
__version__ = '2.4.5'
|
__version__ = '2.4.6'
|
||||||
|
|
||||||
__author__ = 'Scot Hacker'
|
__author__ = 'Scot Hacker'
|
||||||
__email__ = 'shacker@birdhouse.org'
|
__email__ = 'shacker@birdhouse.org'
|
||||||
|
|
|
@ -1,15 +1,14 @@
|
||||||
# If a documented django-todo option is NOT configured in settings, use these values.
|
# If a documented django-todo option is NOT configured in settings, use these values.
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
|
|
||||||
|
|
||||||
hash = {
|
hash = {
|
||||||
"TODO_ALLOW_FILE_ATTACHMENTS": True,
|
"TODO_ALLOW_FILE_ATTACHMENTS": True,
|
||||||
|
"TODO_COMMENT_CLASSES": [],
|
||||||
|
"TODO_DEFAULT_ASSIGNEE": None,
|
||||||
"TODO_LIMIT_FILE_ATTACHMENTS": [".jpg", ".gif", ".png", ".csv", ".pdf", ".zip"],
|
"TODO_LIMIT_FILE_ATTACHMENTS": [".jpg", ".gif", ".png", ".csv", ".pdf", ".zip"],
|
||||||
"TODO_MAXIMUM_ATTACHMENT_SIZE": 5000000,
|
"TODO_MAXIMUM_ATTACHMENT_SIZE": 5000000,
|
||||||
"TODO_STAFF_ONLY": True,
|
|
||||||
"TODO_DEFAULT_ASSIGNEE": None,
|
|
||||||
"TODO_PUBLIC_SUBMIT_REDIRECT": "/",
|
"TODO_PUBLIC_SUBMIT_REDIRECT": "/",
|
||||||
"TODO_COMMENT_CLASSES": [],
|
"TODO_STAFF_ONLY": True,
|
||||||
}
|
}
|
||||||
|
|
||||||
# These intentionally have no defaults (user MUST set a value):
|
# 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.
|
"""Try to get a setting from project settings.
|
||||||
If empty or doesn't exist, fall back to a value from defaults hash."""
|
If empty or doesn't exist, fall back to a value from defaults hash."""
|
||||||
|
|
||||||
_ret = getattr(settings, key, False) or hash.get(key)
|
return getattr(settings, key, False) or hash.get(key)
|
||||||
return _ret
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue