From 777b4c26e343d07764a35132462e92c07e4b0aec Mon Sep 17 00:00:00 2001 From: wrwrwr Date: Sat, 29 Nov 2014 09:33:06 +0100 Subject: [PATCH] Removed a clear_cache statement in contrib.sites.create_default_site. It was originally added to fix a test (refs #7514); but Site now has a pre_save signal handler (refs #19698) to clear the cache which makes this call redundant. --- django/contrib/sites/management.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/django/contrib/sites/management.py b/django/contrib/sites/management.py index 2600d04fbd..975bafe1ff 100644 --- a/django/contrib/sites/management.py +++ b/django/contrib/sites/management.py @@ -35,5 +35,3 @@ def create_default_site(app_config, verbosity=2, interactive=True, db=DEFAULT_DB with connections[db].cursor() as cursor: for command in sequence_sql: cursor.execute(command) - - Site.objects.clear_cache()