diff options
| author | Matt Deacalion Stevens <matt@dirtymonkey.co.uk> | 2015-09-21 21:47:48 +0100 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2015-09-23 09:01:02 +0200 |
| commit | f06ce6053cae6a96ecce29ce2020789945757bf4 (patch) | |
| tree | 697a6cc40fb98a8025eaf481d7c9d708252619b2 /django/utils/termcolors.py | |
| parent | af95eee9fb70dae5b3b2ce8bc73c13fc1de239ff (diff) | |
Fixed #25439 -- Added `SUCCESS` style to termcolor palettes
Diffstat (limited to 'django/utils/termcolors.py')
| -rw-r--r-- | django/utils/termcolors.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/termcolors.py b/django/utils/termcolors.py index d7305f9d5a..507b25dd77 100644 --- a/django/utils/termcolors.py +++ b/django/utils/termcolors.py @@ -76,6 +76,7 @@ LIGHT_PALETTE = 'light' PALETTES = { NOCOLOR_PALETTE: { 'ERROR': {}, + 'SUCCESS': {}, 'WARNING': {}, 'NOTICE': {}, 'SQL_FIELD': {}, @@ -96,6 +97,7 @@ PALETTES = { }, DARK_PALETTE: { 'ERROR': {'fg': 'red', 'opts': ('bold',)}, + 'SUCCESS': {'fg': 'green', 'opts': ('bold',)}, 'WARNING': {'fg': 'yellow', 'opts': ('bold',)}, 'NOTICE': {'fg': 'red'}, 'SQL_FIELD': {'fg': 'green', 'opts': ('bold',)}, @@ -116,6 +118,7 @@ PALETTES = { }, LIGHT_PALETTE: { 'ERROR': {'fg': 'red', 'opts': ('bold',)}, + 'SUCCESS': {'fg': 'green', 'opts': ('bold',)}, 'WARNING': {'fg': 'yellow', 'opts': ('bold',)}, 'NOTICE': {'fg': 'red'}, 'SQL_FIELD': {'fg': 'green', 'opts': ('bold',)}, |
