Просмотр исходного кода

Fixed #22882 -- Fixed a UnicodeDecodeError in flush.

Thanks djbaldey for the report.
Tim Graham 10 лет назад
Родитель
Сommit
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`).