summaryrefslogtreecommitdiff
path: root/django/core/management/sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/management/sql.py')
-rw-r--r--django/core/management/sql.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/django/core/management/sql.py b/django/core/management/sql.py
index 09713d278d..f053ec7082 100644
--- a/django/core/management/sql.py
+++ b/django/core/management/sql.py
@@ -178,9 +178,9 @@ def sql_reset(app, style):
return sql_delete(app, style) + sql_all(app, style)
def sql_flush(style):
- "Returns a list of the SQL statements used to flush the database"
- from django.db import backend
- statements = backend.get_sql_flush(style, table_list(), sequence_list())
+ "Returns a list of the SQL statements used to flush the database."
+ from django.db import connection
+ statements = connection.ops.sql_flush(style, table_list(), sequence_list())
return statements
def sql_custom(app):