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.
This commit is contained in:
wrwrwr 2014-11-29 09:33:06 +01:00 committed by Tim Graham
parent e1513a7960
commit 777b4c26e3
1 changed files with 0 additions and 2 deletions

View File

@ -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()