Skip to content

Commit

Permalink
[1.2.X] Added a modification missed in r15241 (backport of r15239 to …
Browse files Browse the repository at this point in the history
…this branch.)

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15256 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ramiro committed Jan 21, 2011
1 parent 715c00d commit 8026470
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion django/db/backends/creation.py
Expand Up @@ -350,7 +350,21 @@ def create_test_db(self, verbosity=1, autoclobber=False):
can_rollback = self._rollback_works() can_rollback = self._rollback_works()
self.connection.settings_dict["SUPPORTS_TRANSACTIONS"] = can_rollback self.connection.settings_dict["SUPPORTS_TRANSACTIONS"] = can_rollback


call_command('syncdb', verbosity=verbosity, interactive=False, database=self.connection.alias) call_command('syncdb',
verbosity=verbosity,
interactive=False,
database=self.connection.alias,
load_initial_data=False)

# We need to then do a flush to ensure that any data installed by
# custom SQL has been removed. The only test data should come from
# test fixtures, or autogenerated from post_syncdb triggers.
# This has the side effect of loading initial data (which was
# intentionally skipped in the syncdb).
call_command('flush',
verbosity=verbosity,
interactive=False,
database=self.connection.alias)


if settings.CACHE_BACKEND.startswith('db://'): if settings.CACHE_BACKEND.startswith('db://'):
from django.core.cache import parse_backend_uri, cache from django.core.cache import parse_backend_uri, cache
Expand Down

0 comments on commit 8026470

Please sign in to comment.