summaryrefslogtreecommitdiff
path: root/django/core/management/commands/sqlsequencereset.py
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-04-01 15:29:58 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-04-01 15:29:58 +0000
commitc39ec6dccb389fbb4047e44f5247e18bb76ae598 (patch)
tree77dd6b934225a834606c101f6e1cef7c8e6c980f /django/core/management/commands/sqlsequencereset.py
parentdb5be42c124886eab758e5f4c181db32af174e23 (diff)
Fixed #13248 -- Corrected the output of sqlsequencereset after the m2m changes. Thanks to EroSennin for the report, and Gabriel Hurley for the fix.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12903 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/core/management/commands/sqlsequencereset.py')
-rw-r--r--django/core/management/commands/sqlsequencereset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/sqlsequencereset.py b/django/core/management/commands/sqlsequencereset.py
index 6aedcfb043..aaab38b100 100644
--- a/django/core/management/commands/sqlsequencereset.py
+++ b/django/core/management/commands/sqlsequencereset.py
@@ -17,4 +17,4 @@ class Command(AppCommand):
def handle_app(self, app, **options):
connection = connections[options.get('database', DEFAULT_DB_ALIAS)]
- return u'\n'.join(connection.ops.sequence_reset_sql(self.style, models.get_models(app))).encode('utf-8')
+ return u'\n'.join(connection.ops.sequence_reset_sql(self.style, models.get_models(app, include_auto_created=True))).encode('utf-8')