summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/core/management/color.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/color.py b/django/core/management/color.py
index 612afff4e2..8c7a87fe71 100644
--- a/django/core/management/color.py
+++ b/django/core/management/color.py
@@ -37,7 +37,7 @@ def color_style():
setattr(style, role, termcolors.make_style(**format))
# For backwards compatibility,
# set style for ERROR_OUTPUT == ERROR
- setattr(style, 'ERROR_OUTPUT', style.ERROR)
+ style.ERROR_OUTPUT = style.ERROR
else:
style = no_style()
return style