1. fiji
  2. django-3k

Commits

c7protal  committed 3c5d32b

Converted 12 failures to 12 errors, as described here: http://bitbucket.org/fiji/django-3k/issue/94

from FAILED (failures=341, errors=139)
to FAILED (failures=353, errors=127)

  • Participants
  • Parent commits 3943f2a
  • Branches default

Comments (0)

Files changed (1)

File django/contrib/messages/storage/base.py

View file
 from django.conf import settings
 from django.utils.encoding import force_unicode, StrAndUnicode
 from django.contrib.messages import constants, utils
-
+from django.utils.py3 import to_utf8_bytes
 
 LEVEL_TAGS = utils.get_level_tags()
 
             return self._store(self._queued_messages, response)
         elif self.added_new:
             messages = self._loaded_messages + self._queued_messages
-            return self._store(messages, response)
+            return self._store(to_utf8_bytes(messages), to_utf8_bytes(response))
 
     def add(self, level, message, extra_tags=''):
         """