mirror of https://github.com/django/django.git
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:
parent
e1513a7960
commit
777b4c26e3
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue