Skip to content

Commit c39ec6d

Browse files
committed
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
1 parent db5be42 commit c39ec6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django/core/management/commands/sqlsequencereset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ class Command(AppCommand):
1717

1818
def handle_app(self, app, **options):
1919
connection = connections[options.get('database', DEFAULT_DB_ALIAS)]
20-
return u'\n'.join(connection.ops.sequence_reset_sql(self.style, models.get_models(app))).encode('utf-8')
20+
return u'\n'.join(connection.ops.sequence_reset_sql(self.style, models.get_models(app, include_auto_created=True))).encode('utf-8')

0 commit comments

Comments
 (0)