... sh translations have been added. The default __repr__ method of Django models has been made more robust in the face of bad Unicode data coming from the __unicode__ method; rather than raise an exception in such cases, repr() will now contain the string ... "[Bad Unicode data]" in place of the invalid Unicode. A bug involving the interaction of Django's SafeUnicode class and the MySQL adapte ... r has been resolved; SafeUnicode instances (generated, for example, by template rendering) can now be assigned to model attributes and saved to MySQL witho ... ... 置いています。 Common changes This section describes the changes between 0.96 and 1.0 that most users will need to make. Use Unicode Change string literals ( 'foo' ) into Unicode literals ( u'foo' ). Django now uses Unicode strings throughout. In most pla ... ces, raw strings will continue to work, but updating to use Unicode literals will prevent some obscure problems. See Unicode データ for full details. モデル Common changes to your models fil ... Rename your maxlength argument to max_length (this was changed to be consistent with form fields): Replace __str__ with __unicode__ Replace your model's __str__ function with a __unicode__ method, and make sure you use Unicode ( u'foo' ) in that method ... ... e admin application is available online in the official Django documentation: See the admin reference for details Improved Unicode handling Django's internals have been refactored to use Unicode throughout; this drastically simplifies the task of dealin ... y functions have been provided to ease interoperability with third-party libraries and systems which may or may not handle Unicode gracefully. Details are available in Django's Unicode-handling documentation. 詳しくは Unicode データ を参照。 改善された ... ... of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a pas ... pare the submitted email using the stricter, recommended algorithm for case-insensitive comparison of two identifiers from Unicode Technical Report 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email a ... ... pare the submitted email using the stricter, recommended algorithm for case-insensitive comparison of two identifiers from Unicode Technical Report 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email a ... ... ess making use of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a pas ... pare the submitted email using the stricter, recommended algorithm for case-insensitive comparison of two identifiers from Unicode Technical Report 36, section 2.11.2(B)(2) . Upon a match, the email containing the reset token will be sent to the email a ... ... slow for large inputs containing certain characters. URLField.to_python() now uses a simplified scheme detection, avoiding Unicode normalization entirely and deferring URL validation to the appropriate layers. As a result, while leading and trailing whi ... ... denial-of-service vulnerability in URLField via Unicode normalization on Windows The URLField form field's to_python() method used urlsplit() to determine whether to prepend a UR ... slow for large inputs containing certain characters. URLField.to_python() now uses a simplified scheme detection, avoiding Unicode normalization entirely and deferring URL validation to the appropriate layers. As a result, while leading and trailing whi ... ... a Unicode normalization on Windows The URLField form field's to_python() method used urlsplit() to determine whether to prepend a UR ... slow for large inputs containing certain characters. URLField.to_python() now uses a simplified scheme detection, avoiding Unicode normalization entirely and deferring URL validation to the appropriate layers. As a result, while leading and trailing whi ... ... rt of a index/unique_together constraint ( #23794 ). Fixed django.core.files.File.__repr__() when the file's name contains Unicode characters ( #23888 ). Added missing context to the admin's delete_selected view that prevented custom site header, etc. f ... odelAdmin methods to receive the incorrect obj value ( #23934 ). Fixed runserver crash when socket error message contained Unicode characters ( #23946 ). Fixed serialization of type when adding a deconstruct() method ( #23950 ). Prevented the django.con ... n the admin when using "Save as new" and also deleting a related inline ( #23857 ). Always converted related_name to text (Unicode), since that is required on Python 3 for interpolation. Removed conversion of related_name to text in migration deconstruc ... 2026年10月08日