1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #25720 -- Made gettext() return bytestring on Python 2 if input is bytestring.

This is consistent with the behavior of Django 1.7.x and earlier.
This commit is contained in:
Marti Raudsepp
2015-11-09 15:58:24 +02:00
committed by Tim Graham
parent 4c593eaa5f
commit d3e3703a15
3 changed files with 16 additions and 0 deletions

View File

@@ -27,3 +27,6 @@ Bugfixes
* Fixed a data loss possibility with :class:`~django.db.models.Prefetch` if
``to_attr`` is set to a ``ManyToManyField`` (:ticket:`25693`).
* Fixed a regression in 1.8 by making ``gettext()`` once again return UTF-8
bytestrings on Python 2 if the input is a bytestring (:ticket:`25720`).