Fixed the last fix for database test settings to work with Python3.

This commit is contained in:
Shai Berger 2014-03-09 12:24:23 +02:00
parent 3a34f71d4d
commit deff74ea0c
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class ConnectionHandler(object):
"to a %s entry in the TEST setting" % (key, new_key),
RemovedInDjango19Warning, stacklevel=2)
test_settings[new_key] = value
for key in conn.keys():
for key in list(conn.keys()):
if key.startswith('TEST_'):
del conn[key]
# Check that they didn't just use the old name with 'TEST_' removed