mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Fixed a missing import in mysql backend. Thanks for pointing it out, mattmcc.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6244 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5af2af3e33
commit
4c0ac53ff8
@ -25,6 +25,7 @@ import types
|
||||
import re
|
||||
|
||||
# Raise exceptions for database warnings if DEBUG is on
|
||||
from django.conf import settings
|
||||
if settings.DEBUG:
|
||||
from warnings import filterwarnings
|
||||
filterwarnings("error", category=Database.Warning)
|
||||
|
Loading…
Reference in New Issue
Block a user