diff options
Diffstat (limited to 'django/core/management/commands/reset.py')
-rw-r--r-- | django/core/management/commands/reset.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/management/commands/reset.py b/django/core/management/commands/reset.py index 9b43a6b6d0..475fd25c1f 100644 --- a/django/core/management/commands/reset.py +++ b/django/core/management/commands/reset.py @@ -20,7 +20,7 @@ class Command(AppCommand): output_transaction = True def handle_app(self, app, **options): - using = options['database'] + using = options.get('database', DEFAULT_DB_ALIAS) connection = connections[using] app_name = app.__name__.split('.')[-2] |