Fixed #10397 -- made GIS test runner compatible with changes in r9756.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@9978 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Justin Bronn 2009-03-06 02:01:20 +00:00
parent ad6ce1e6f9
commit 68f81c873d
1 changed files with 1 additions and 0 deletions

View File

@ -140,6 +140,7 @@ def create_spatial_db(test=False, verbosity=1, autoclobber=False, interactive=Fa
# Closing the connection # Closing the connection
connection.close() connection.close()
settings.DATABASE_NAME = db_name settings.DATABASE_NAME = db_name
settings.DATABASE_SUPPORTS_TRANSACTIONS = connection.creation._rollback_works()
# Syncing the database # Syncing the database
call_command('syncdb', verbosity=verbosity, interactive=interactive) call_command('syncdb', verbosity=verbosity, interactive=interactive)