summaryrefslogtreecommitdiff
path: root/django/core/management/commands/sqlsequencereset.py
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-26 15:27:11 -0500
committerTim Graham <timograham@gmail.com>2014-12-26 15:55:34 -0500
commitc2e419c26781b88f2b34b445f450b735267155b0 (patch)
treec07749037e1d51ca2c4217b02e6936189438df85 /django/core/management/commands/sqlsequencereset.py
parent1729a5250b052832540cd696df3ff0a0a77baddf (diff)
Fixed #24054 -- Enabled sqlsequencereset for apps with migrations.
Diffstat (limited to 'django/core/management/commands/sqlsequencereset.py')
-rw-r--r--django/core/management/commands/sqlsequencereset.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/django/core/management/commands/sqlsequencereset.py b/django/core/management/commands/sqlsequencereset.py
index 729267bb73..690ea902a4 100644
--- a/django/core/management/commands/sqlsequencereset.py
+++ b/django/core/management/commands/sqlsequencereset.py
@@ -1,7 +1,6 @@
from __future__ import unicode_literals
from django.core.management.base import AppCommand
-from django.core.management.sql import check_for_migrations
from django.db import connections, DEFAULT_DB_ALIAS
@@ -20,7 +19,6 @@ class Command(AppCommand):
if app_config.models_module is None:
return
connection = connections[options.get('database')]
- check_for_migrations(app_config, connection)
models = app_config.get_models(include_auto_created=True)
statements = connection.ops.sequence_reset_sql(self.style, models)
return '\n'.join(statements)