summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-02-03 00:24:05 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-02-03 00:24:05 +0000
commitde35bb40af6174bc5d3cb1b12584cbdb11919ca7 (patch)
tree0acdb100eec8768e440d1cbe56558eed28774d28
parentf9a33cbfde4a174a1c405f8b93d4848ed7f9b6bc (diff)
Fixed #12754 -- Reintroduced style.ERROR_OUTPUT as an alias for style.ERROR. Django doesn't need this itself, but it would be a backwards incompatible change to remove it. Thanks to Jeff Balogh for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12376 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/management/color.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/core/management/color.py b/django/core/management/color.py
index 11a9283df9..612afff4e2 100644
--- a/django/core/management/color.py
+++ b/django/core/management/color.py
@@ -35,6 +35,9 @@ def color_style():
for role in termcolors.PALETTES[termcolors.NOCOLOR_PALETTE]:
format = color_settings.get(role,{})
setattr(style, role, termcolors.make_style(**format))
+ # For backwards compatibility,
+ # set style for ERROR_OUTPUT == ERROR
+ setattr(style, 'ERROR_OUTPUT', style.ERROR)
else:
style = no_style()
return style