Ticket #17467: django_db_create_test_db.diff
File django_db_create_test_db.diff, 726 bytes (added by , 13 years ago) |
---|
-
creation.py
old new 382 382 if 'django.contrib.sites' in settings.INSTALLED_APPS: 383 383 Site = get_model('sites', 'Site') 384 384 if Site is not None and Site.objects.using(self.connection.alias).count() == 1: 385 Site.objects.using(self.connection.alias).update(id=settings.SITE_ID) 385 if Site.objects.using(self.connection.alias).all()[0].id != settings.SITE_ID: 386 Site.objects.using(self.connection.alias).update(id=settings.SITE_ID) 386 387 387 388 from django.core.cache import get_cache 388 389 from django.core.cache.backends.db import BaseDatabaseCache