set database password at the appropriate place

This commit is contained in:
Jan Dittberner 2015-01-10 18:43:43 +01:00
parent 780a670565
commit ba39e3f765

View file

@ -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