diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-26 15:27:11 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-26 15:57:30 -0500 |
| commit | 1173140dbf5604241209b2df3d6123adbe6e9e36 (patch) | |
| tree | 6b90eb83f506c30ff2b495844c8fe54663c8a174 /django | |
| parent | b9169a100d4a836e3401395dc1e5bf120a36887d (diff) | |
[1.7.x] Fixed #24054 -- Enabled sqlsequencereset for apps with migrations.
Backport of c2e419c26781b88f2b34b445f450b735267155b0 from master
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/management/commands/sqlsequencereset.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/django/core/management/commands/sqlsequencereset.py b/django/core/management/commands/sqlsequencereset.py index 4f7ce4492a..9d25125efb 100644 --- a/django/core/management/commands/sqlsequencereset.py +++ b/django/core/management/commands/sqlsequencereset.py @@ -3,7 +3,6 @@ from __future__ import unicode_literals from optparse import make_option from django.core.management.base import AppCommand -from django.core.management.sql import check_for_migrations from django.db import connections, DEFAULT_DB_ALIAS @@ -23,7 +22,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) |
