diff options
| author | Jannis Leidel <jannis@leidel.info> | 2011-07-05 14:16:37 +0000 |
|---|---|---|
| committer | Jannis Leidel <jannis@leidel.info> | 2011-07-05 14:16:37 +0000 |
| commit | 89c302cf3f63f35161bdb2c09c849b30f35136e2 (patch) | |
| tree | 7e496af24e31a05866192d1382f80b9b7ecee3ae /django/db | |
| parent | b37dca1aec3afc88d91ec22030ec6bd5334affc0 (diff) | |
Rolled back r16510, r16513 and r16514 because it wasn't ready.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16515 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/backends/creation.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/django/db/backends/creation.py b/django/db/backends/creation.py index 6170bf6b97..437a4297af 100644 --- a/django/db/backends/creation.py +++ b/django/db/backends/creation.py @@ -261,7 +261,9 @@ class BaseDatabaseCreation(object): for cache_alias in settings.CACHES: cache = get_cache(cache_alias) if isinstance(cache, BaseDatabaseCache): - call_command('createcachetable', cache._table, database=self.connection.alias) + from django.db import router + if router.allow_syncdb(self.connection.alias, cache.cache_model_class): + call_command('createcachetable', cache._table, database=self.connection.alias) # Get a cursor (even though we don't need one yet). This has # the side effect of initializing the test database. |
