diff --git a/django/db/backends/mysql/base.py b/django/db/backends/mysql/base.py index b2d9b649be0..5d1c023dcb7 100644 --- a/django/db/backends/mysql/base.py +++ b/django/db/backends/mysql/base.py @@ -50,10 +50,6 @@ from django.utils.safestring import SafeBytes, SafeText from django.utils import six 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 IntegrityError = Database.IntegrityError diff --git a/docs/releases/1.8.txt b/docs/releases/1.8.txt index 77ab5eec804..cbd63495c5e 100644 --- a/docs/releases/1.8.txt +++ b/docs/releases/1.8.txt @@ -774,6 +774,9 @@ Miscellaneous in ``django.test.utils`` were removed. Override ``TEMPLATE_LOADERS`` with ``override_settings`` instead. +* Warnings from the MySQL database backend are no longer converted to + exceptions when :setting:`DEBUG` is ``True``. + .. _deprecated-features-1.8: Features deprecated in 1.8