Kaydet (Commit) 5bcd2920 authored tarafından Tim Graham's avatar Tim Graham

Fixed #23871 -- Removed promotion of MySQL warnings to errors in DEBUG mode.

üst 45db7f7d
...@@ -50,10 +50,6 @@ from django.utils.safestring import SafeBytes, SafeText ...@@ -50,10 +50,6 @@ from django.utils.safestring import SafeBytes, SafeText
from django.utils import six from django.utils import six
from django.utils import timezone from django.utils import timezone
# Raise exceptions for database warnings if DEBUG is on
if settings.DEBUG:
warnings.filterwarnings("error", category=Database.Warning)
DatabaseError = Database.DatabaseError DatabaseError = Database.DatabaseError
IntegrityError = Database.IntegrityError IntegrityError = Database.IntegrityError
......
...@@ -774,6 +774,9 @@ Miscellaneous ...@@ -774,6 +774,9 @@ Miscellaneous
in ``django.test.utils`` were removed. Override ``TEMPLATE_LOADERS`` with in ``django.test.utils`` were removed. Override ``TEMPLATE_LOADERS`` with
``override_settings`` instead. ``override_settings`` instead.
* Warnings from the MySQL database backend are no longer converted to
exceptions when :setting:`DEBUG` is ``True``.
.. _deprecated-features-1.8: .. _deprecated-features-1.8:
Features deprecated in 1.8 Features deprecated in 1.8
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment