Skip to content
Browse files

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: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent f9a33cb commit de35bb40af6174bc5d3cb1b12584cbdb11919ca7 @freakboy3742 freakboy3742 committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 django/core/management/
3 django/core/management/
@@ -35,6 +35,9 @@ class dummy: pass
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)
style = no_style()
return style

0 comments on commit de35bb4

Please sign in to comment.
Something went wrong with that request. Please try again.