Ticket #13248: 13248_sqlsequencereset.diff

File 13248_sqlsequencereset.diff, 671 bytes (added by gabrielhurley, 5 years ago)

sets include_auto_created to True for sqlsequencereset

  • django/core/management/commands/sqlsequencereset.py

     
    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')
Back to Top