summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2008-06-22 06:34:17 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2008-06-22 06:34:17 +0000
commitb83fcacfcc42f4288712d3ffe59c87b847936f61 (patch)
treea17759b0bd1b51c3aa93ecbac50176d38ad8acee
parentb1851cca3ee1494cc020f1676e2029ef138250da (diff)
Fixed #7514 -- Added code to clear the site cache on sync. This shouldn't have any effect on regular usage, but it does correct an error in the test suite. Thanks to Marc Fargas for the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7723 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/sites/management.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/contrib/sites/management.py b/django/contrib/sites/management.py
index 6831cab96d..5cecfb4ec0 100644
--- a/django/contrib/sites/management.py
+++ b/django/contrib/sites/management.py
@@ -13,5 +13,6 @@ def create_default_site(app, created_models, verbosity):
print "Creating example.com Site object"
s = Site(domain="example.com", name="example.com")
s.save()
+ Site.objects.clear_cache()
dispatcher.connect(create_default_site, sender=site_app, signal=signals.post_syncdb)