diff options
| -rw-r--r-- | django/core/management/commands/sqlsequencereset.py | 2 | ||||
| -rw-r--r-- | docs/releases/1.7.2.txt | 3 |
2 files changed, 3 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) diff --git a/docs/releases/1.7.2.txt b/docs/releases/1.7.2.txt index 309aa736ad..7cd366d128 100644 --- a/docs/releases/1.7.2.txt +++ b/docs/releases/1.7.2.txt @@ -167,3 +167,6 @@ Bugfixes instead of ``DeleteModel`` and ``CreateModel`` operations when changing ``Meta.managed``. This prevents data loss when changing ``managed`` from ``False`` to ``True`` and vice versa (:ticket:`24037`). + +* Enabled the ``sqlsequencereset`` command on apps with migrations + (:ticket:`24054`). |
