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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/django/core/management/sql.py b/django/core/management/sql.py
index 0d54f9b220..27113dbbbe 100644
--- a/django/core/management/sql.py
+++ b/django/core/management/sql.py
@@ -13,8 +13,12 @@ def sql_flush(style, connection, only_django=False, reset_sequences=True, allow_
tables = connection.introspection.django_table_names(only_existing=True, include_views=False)
else:
tables = connection.introspection.table_names(include_views=False)
- seqs = connection.introspection.sequence_list() if reset_sequences else ()
- return connection.ops.sql_flush(style, tables, seqs, allow_cascade)
+ return connection.ops.sql_flush(
+ style,
+ tables,
+ reset_sequences=reset_sequences,
+ allow_cascade=allow_cascade,
+ )
def emit_pre_migrate_signal(verbosity, interactive, db, **kwargs):