Skip to content

Commit

Permalink
Merge pull request #150 from blaze33/master
Browse files Browse the repository at this point in the history
Fix RemovedInDjango19Warning and test_database_url_value
  • Loading branch information
blueyed committed Mar 13, 2016
2 parents d66ecc6 + 7b4df1f commit 407af2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configurations/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
from django.core.exceptions import ImproperlyConfigured
from django.utils import six
try:
from django.utils.importlib import import_module
except ImportError:
from importlib import import_module
except ImportError:
from django.utils.importlib import import_module


def isuppercase(name):
Expand Down
1 change: 1 addition & 0 deletions tests/test_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ def test_database_url_value(self):
with env(DATABASE_URL='sqlite://'):
self.assertEqual(value.setup('DATABASE_URL'), {
'default': {
'CONN_MAX_AGE': 0,
'ENGINE': 'django.db.backends.sqlite3',
'HOST': '',
'NAME': ':memory:',
Expand Down

0 comments on commit 407af2e

Please sign in to comment.