Ticket #12058: reset-with-database-option.diff

File reset-with-database-option.diff, 523 bytes (added by Lemuel Formacil, 15 years ago)
  • django/core/management/commands/reset.py

     
    2323        if not options['database']:
    2424            dbs = connections.all()
    2525        else:
    26             dbs = [options['database']]
     26            dbs = [connections[options['database']]]
    2727
    2828        app_name = app.__name__.split('.')[-2]
    2929        self.style = no_style()
Back to Top