mirror of
https://github.com/django/django.git
synced 2025-09-12 13:36:31 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue