Code

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

File reset-with-database-option.diff, 523 bytes (added by lemuelf, 5 years ago)
Line 
1Index: django/core/management/commands/reset.py
2===================================================================
3--- django/core/management/commands/reset.py    (revision 11629)
4+++ django/core/management/commands/reset.py    (working copy)
5@@ -23,7 +23,7 @@
6         if not options['database']:
7             dbs = connections.all()
8         else:
9-            dbs = [options['database']]
10+            dbs = [connections[options['database']]]
11 
12         app_name = app.__name__.split('.')[-2]
13         self.style = no_style()