瀏覽代碼

Fixed #22882 -- Fixed a UnicodeDecodeError in flush.

Thanks djbaldey for the report.
Tim Graham 10 年之前
父節點
當前提交
0e4d79c4f0
共有 2 個文件被更改,包括 5 次插入0 次删除
  1. 2 0
      django/core/management/commands/flush.py
  2. 3 0
      docs/releases/1.7.1.txt

+ 2 - 0
django/core/management/commands/flush.py

@@ -1,3 +1,5 @@
+from __future__ import unicode_literals
+
 import sys
 from importlib import import_module
 

+ 3 - 0
docs/releases/1.7.1.txt

@@ -10,3 +10,6 @@ Bugfixes
 ========
 
 * Replace with actual issue (:ticket:`00000`).
+
+* Fixed a ``UnicodeDecodeError`` when the ``flush`` error message contained
+  Unicode characters (:ticket:`22882`).