From f06ce6053cae6a96ecce29ce2020789945757bf4 Mon Sep 17 00:00:00 2001 From: Matt Deacalion Stevens Date: Mon, 21 Sep 2015 21:47:48 +0100 Subject: [PATCH] Fixed #25439 -- Added `SUCCESS` style to termcolor palettes --- django/utils/termcolors.py | 3 +++ 1 file changed, 3 insertions(+) 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',)},