Ticket #13248: 13248_sqlsequencereset.diff
File 13248_sqlsequencereset.diff, 671 bytes (added by , 15 years ago) |
---|
-
django/core/management/commands/sqlsequencereset.py
17 17 18 18 def handle_app(self, app, **options): 19 19 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')