set database password at the appropriate place
This commit is contained in:
parent
780a670565
commit
ba39e3f765
1 changed files with 2 additions and 2 deletions
|
@ -91,9 +91,9 @@ class DatabaseUserManager(models.Manager):
|
||||||
if username is None:
|
if username is None:
|
||||||
username = self._get_next_dbuser_name(osuser, db_type)
|
username = self._get_next_dbuser_name(osuser, db_type)
|
||||||
db_user = DatabaseUser(
|
db_user = DatabaseUser(
|
||||||
osuser=osuser, db_type=db_type, name=username, password=password)
|
osuser=osuser, db_type=db_type, name=username)
|
||||||
if commit:
|
if commit:
|
||||||
db_user.create_in_database()
|
db_user.create_in_database(password=password)
|
||||||
db_user.save()
|
db_user.save()
|
||||||
return db_user
|
return db_user
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue