From abcdb237bb313d116ce2ac8e90f79f61429afc70 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 13 Nov 2015 11:28:20 -0500 Subject: [PATCH] Refs #25196 -- Fixed incorrect argument order in test database creation. --- django/db/backends/mysql/creation.py | 2 +- django/db/backends/postgresql/creation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/django/db/backends/mysql/creation.py b/django/db/backends/mysql/creation.py index 43857f07eab..ae4370935a2 100644 --- a/django/db/backends/mysql/creation.py +++ b/django/db/backends/mysql/creation.py @@ -31,7 +31,7 @@ class DatabaseCreation(BaseDatabaseCreation): try: if verbosity >= 1: print("Destroying old test database for alias %s..." % ( - self._get_database_display_str(target_database_name, verbosity), + self._get_database_display_str(verbosity, target_database_name), )) cursor.execute("DROP DATABASE %s" % qn(target_database_name)) cursor.execute("CREATE DATABASE %s" % qn(target_database_name)) diff --git a/django/db/backends/postgresql/creation.py b/django/db/backends/postgresql/creation.py index 2a886bae3c6..3efcfc7692d 100644 --- a/django/db/backends/postgresql/creation.py +++ b/django/db/backends/postgresql/creation.py @@ -33,7 +33,7 @@ class DatabaseCreation(BaseDatabaseCreation): try: if verbosity >= 1: print("Destroying old test database for alias %s..." % ( - self._get_database_display_str(target_database_name, verbosity), + self._get_database_display_str(verbosity, target_database_name), )) cursor.execute("DROP DATABASE %s" % qn(target_database_name)) cursor.execute("CREATE DATABASE %s WITH TEMPLATE %s" % (